Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hvc_console: Remove __devexit annotation of hvc_remove()

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>

authored by

Hendrik Brueckner and committed by
Benjamin Herrenschmidt
934752d8 febde371

+2 -2
+1 -1
drivers/char/hvc_console.c
··· 803 803 } 804 804 EXPORT_SYMBOL_GPL(hvc_alloc); 805 805 806 - int __devexit hvc_remove(struct hvc_struct *hp) 806 + int hvc_remove(struct hvc_struct *hp) 807 807 { 808 808 unsigned long flags; 809 809 struct tty_struct *tty;
+1 -1
drivers/char/hvc_console.h
··· 81 81 extern struct hvc_struct * __devinit hvc_alloc(uint32_t vtermno, int data, 82 82 struct hv_ops *ops, int outbuf_size); 83 83 /* remove a vterm from hvc tty operation (module_exit or hotplug remove) */ 84 - extern int __devexit hvc_remove(struct hvc_struct *hp); 84 + extern int hvc_remove(struct hvc_struct *hp); 85 85 86 86 /* data available */ 87 87 int hvc_poll(struct hvc_struct *hp);