diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2012-03-11 10:02:38 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-12 13:21:55 -0400 |
commit | 9abac8537c2cf435b251ca61e632d6a70a84077e (patch) | |
tree | c3ea2851202846e4b748be9285fba750a8968fcd /drivers/tty | |
parent | 55e4016dd055e262e4b078b81c80b55386ead0f4 (diff) |
tty: serial: vt8500: fix annotations for probe/remove
Fixes:
WARNING: drivers/tty/serial/built-in.o(.data+0x30): Section mismatch in reference from the variable vt8500_platform_driver to the function .init.text:vt8500_serial_probe()
The variable vt8500_platform_driver references
the function __init vt8500_serial_probe()
And mark the remove pointer while we are here.
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/vt8500_serial.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/vt8500_serial.c b/drivers/tty/serial/vt8500_serial.c index 026cb9ea5cd1..2be006fb3da0 100644 --- a/drivers/tty/serial/vt8500_serial.c +++ b/drivers/tty/serial/vt8500_serial.c | |||
@@ -544,7 +544,7 @@ static struct uart_driver vt8500_uart_driver = { | |||
544 | .cons = VT8500_CONSOLE, | 544 | .cons = VT8500_CONSOLE, |
545 | }; | 545 | }; |
546 | 546 | ||
547 | static int __init vt8500_serial_probe(struct platform_device *pdev) | 547 | static int __devinit vt8500_serial_probe(struct platform_device *pdev) |
548 | { | 548 | { |
549 | struct vt8500_port *vt8500_port; | 549 | struct vt8500_port *vt8500_port; |
550 | struct resource *mmres, *irqres; | 550 | struct resource *mmres, *irqres; |
@@ -605,7 +605,7 @@ static int __devexit vt8500_serial_remove(struct platform_device *pdev) | |||
605 | 605 | ||
606 | static struct platform_driver vt8500_platform_driver = { | 606 | static struct platform_driver vt8500_platform_driver = { |
607 | .probe = vt8500_serial_probe, | 607 | .probe = vt8500_serial_probe, |
608 | .remove = vt8500_serial_remove, | 608 | .remove = __devexit_p(vt8500_serial_remove), |
609 | .driver = { | 609 | .driver = { |
610 | .name = "vt8500_serial", | 610 | .name = "vt8500_serial", |
611 | .owner = THIS_MODULE, | 611 | .owner = THIS_MODULE, |