提交 b1a6f243 编写于 作者: R Richard Röjfors 提交者: Greg Kroah-Hartman

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: NRichard Röjfors <richard.rojfors@pelagicore.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 1917ac76
...@@ -423,7 +423,7 @@ static struct uart_driver timbuart_driver = { ...@@ -423,7 +423,7 @@ static struct uart_driver timbuart_driver = {
.nr = 1 .nr = 1
}; };
static int timbuart_probe(struct platform_device *dev) static int __devinit timbuart_probe(struct platform_device *dev)
{ {
int err, irq; int err, irq;
struct timbuart_port *uart; struct timbuart_port *uart;
...@@ -489,7 +489,7 @@ static int timbuart_probe(struct platform_device *dev) ...@@ -489,7 +489,7 @@ static int timbuart_probe(struct platform_device *dev)
return err; 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); struct timbuart_port *uart = platform_get_drvdata(dev);
...@@ -507,7 +507,7 @@ static struct platform_driver timbuart_platform_driver = { ...@@ -507,7 +507,7 @@ static struct platform_driver timbuart_platform_driver = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
}, },
.probe = timbuart_probe, .probe = timbuart_probe,
.remove = timbuart_remove, .remove = __devexit_p(timbuart_remove),
}; };
/*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册