]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
hvc_console: Remove __devexit annotation of hvc_remove()
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>
Mon, 13 Oct 2008 23:12:52 +0000 (23:12 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 22 Oct 2008 00:00:25 +0000 (11:00 +1100)
Removed __devexit annotation of hvc_remove() to avoid a section mismatch
if the backend initialization fails and hvc_remove() must be used to
clean up allocated hvc structs (called in section __init or __devinit).

Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/char/hvc_console.c
drivers/char/hvc_console.h

index 2d256dc80529ce295a4949a010cd6bbadaef3fda..5b819b12675a9dd855ceda7e2465577831af7460 100644 (file)
@@ -803,7 +803,7 @@ struct hvc_struct __devinit *hvc_alloc(uint32_t vtermno, int data,
 }
 EXPORT_SYMBOL_GPL(hvc_alloc);
 
-int __devexit hvc_remove(struct hvc_struct *hp)
+int hvc_remove(struct hvc_struct *hp)
 {
        unsigned long flags;
        struct tty_struct *tty;
index e3359f3c9b2a1d1b8b0b69b42de278c04f97d2c7..8297dbc2e6ec99f80b2db8fc2eb4e01da6028020 100644 (file)
@@ -81,7 +81,7 @@ extern int hvc_instantiate(uint32_t vtermno, int index, struct hv_ops *ops);
 extern struct hvc_struct * __devinit hvc_alloc(uint32_t vtermno, int data,
                                struct hv_ops *ops, int outbuf_size);
 /* remove a vterm from hvc tty operation (module_exit or hotplug remove) */
-extern int __devexit hvc_remove(struct hvc_struct *hp);
+extern int hvc_remove(struct hvc_struct *hp);
 
 /* data available */
 int hvc_poll(struct hvc_struct *hp);