mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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:
1 parent
2a62721ee2
commit
97d0de4e86
3 files changed
+3
-3
No files matched your search
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 )
|
||||
|
||||