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>
This commit is contained in:
parent
55e4016dd0
commit
9abac8537c
|
@ -544,7 +544,7 @@ static struct uart_driver vt8500_uart_driver = {
|
||||||
.cons = VT8500_CONSOLE,
|
.cons = VT8500_CONSOLE,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init vt8500_serial_probe(struct platform_device *pdev)
|
static int __devinit vt8500_serial_probe(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
struct vt8500_port *vt8500_port;
|
struct vt8500_port *vt8500_port;
|
||||||
struct resource *mmres, *irqres;
|
struct resource *mmres, *irqres;
|
||||||
|
@ -605,7 +605,7 @@ static int __devexit vt8500_serial_remove(struct platform_device *pdev)
|
||||||
|
|
||||||
static struct platform_driver vt8500_platform_driver = {
|
static struct platform_driver vt8500_platform_driver = {
|
||||||
.probe = vt8500_serial_probe,
|
.probe = vt8500_serial_probe,
|
||||||
.remove = vt8500_serial_remove,
|
.remove = __devexit_p(vt8500_serial_remove),
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "vt8500_serial",
|
.name = "vt8500_serial",
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
|
|
Loading…
Reference in New Issue