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@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
This commit is contained in:
Jan Beulich committed 2012-05-21 12:00:54 +02:00
1 parent 2a62721ee2
commit 97d0de4e86
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -357,7 +357,7 @@ static void __init ns16550_endboot(struct serial_port *port)
#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);
+1 -1
View File
@@ -215,7 +215,7 @@ static int pl011_getc(struct serial_port *port, char *pc)
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);
+1 -1
View File
@@ -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 )
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.