]> git.karo-electronics.de Git - linux-beck.git/commitdiff
timbuart: use __devinit and __devexit macros for probe and remove
authorRichard Röjfors <richard.rojfors@pelagicore.com>
Tue, 20 Jul 2010 22:26:53 +0000 (15:26 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 20:47:45 +0000 (13:47 -0700)
Move the probe and remove functions to the devinit and devexit sections.

Signed-off-by: Richard Röjfors <richard.rojfors@pelagicore.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/timbuart.c

index 67ca642713b8d55ac86ee73e31ede85c1c57a6cc..1f36b7eb7351efec3ed4dd72f6cf7f431c515f96 100644 (file)
@@ -423,7 +423,7 @@ static struct uart_driver timbuart_driver = {
        .nr = 1
 };
 
-static int timbuart_probe(struct platform_device *dev)
+static int __devinit timbuart_probe(struct platform_device *dev)
 {
        int err, irq;
        struct timbuart_port *uart;
@@ -489,7 +489,7 @@ err_mem:
        return err;
 }
 
-static int timbuart_remove(struct platform_device *dev)
+static int __devexit timbuart_remove(struct platform_device *dev)
 {
        struct timbuart_port *uart = platform_get_drvdata(dev);
 
@@ -507,7 +507,7 @@ static struct platform_driver timbuart_platform_driver = {
                .owner  = THIS_MODULE,
        },
        .probe          = timbuart_probe,
-       .remove         = timbuart_remove,
+       .remove         = __devexit_p(timbuart_remove),
 };
 
 /*--------------------------------------------------------------------------*/