diff options
author | Richard Röjfors <richard.rojfors@pelagicore.com> | 2010-07-20 15:26:53 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-10 13:47:45 -0700 |
commit | b1a6f24394d44b7bd2c8ec3f301a5eda72ce462f (patch) | |
tree | 33a994c7c95968855934a047899cf29e7f231838 /drivers/serial | |
parent | 1917ac76e023339c73844bec775375b147f57ac7 (diff) | |
download | kernel_goldelico_gta04-b1a6f24394d44b7bd2c8ec3f301a5eda72ce462f.zip kernel_goldelico_gta04-b1a6f24394d44b7bd2c8ec3f301a5eda72ce462f.tar.gz kernel_goldelico_gta04-b1a6f24394d44b7bd2c8ec3f301a5eda72ce462f.tar.bz2 |
timbuart: use __devinit and __devexit macros for probe and remove
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>
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/timbuart.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/serial/timbuart.c b/drivers/serial/timbuart.c index 67ca642..1f36b7e 100644 --- a/drivers/serial/timbuart.c +++ b/drivers/serial/timbuart.c @@ -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), }; /*--------------------------------------------------------------------------*/ |