[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] serial: serial_irq() and descendants can be __init
# HG changeset patch # User Jan Beulich <jbeulich@xxxxxxxx> # Date 1337594454 -7200 # Node ID 381dee0ea722d0cee8d0efb41617442e8ac98674 # Parent 592d15bd4d5ec58486d32ee9998319e7c95fcd66 serial: serial_irq() and descendants can be __init ... as being solely called from smp_intr_init(), which itself is marked such. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Acked-by: Keir Fraser <keir@xxxxxxx> --- diff -r 592d15bd4d5e -r 381dee0ea722 xen/drivers/char/ns16550.c --- a/xen/drivers/char/ns16550.c Fri May 18 16:19:21 2012 +0100 +++ b/xen/drivers/char/ns16550.c Mon May 21 12:00:54 2012 +0200 @@ -357,7 +357,7 @@ static void __init ns16550_endboot(struc #define ns16550_endboot NULL #endif -static int ns16550_irq(struct serial_port *port) +static int __init ns16550_irq(struct serial_port *port) { struct ns16550 *uart = port->uart; return ((uart->irq > 0) ? uart->irq : -1); diff -r 592d15bd4d5e -r 381dee0ea722 xen/drivers/char/pl011.c --- a/xen/drivers/char/pl011.c Fri May 18 16:19:21 2012 +0100 +++ b/xen/drivers/char/pl011.c Mon May 21 12:00:54 2012 +0200 @@ -215,7 +215,7 @@ static int pl011_getc(struct serial_port return 1; } -static int pl011_irq(struct serial_port *port) +static int __init pl011_irq(struct serial_port *port) { struct pl011 *uart = port->uart; return ((uart->irq > 0) ? uart->irq : -1); diff -r 592d15bd4d5e -r 381dee0ea722 xen/drivers/char/serial.c --- a/xen/drivers/char/serial.c Fri May 18 16:19:21 2012 +0100 +++ b/xen/drivers/char/serial.c Mon May 21 12:00:54 2012 +0200 @@ -442,7 +442,7 @@ void __init serial_endboot(void) com[i].driver->endboot(&com[i]); } -int serial_irq(int idx) +int __init serial_irq(int idx) { if ( (idx >= 0) && (idx < ARRAY_SIZE(com)) && com[idx].driver && com[idx].driver->irq ) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |