Skip to content

Commit

Permalink
timbuart: use __devinit and __devexit macros for probe and remove
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Richard Röjfors authored and Greg Kroah-Hartman committed Aug 10, 2010
1 parent 1917ac7 commit b1a6f24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/serial/timbuart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -489,7 +489,7 @@ static int timbuart_probe(struct platform_device *dev)
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);

Expand All @@ -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),
};

/*--------------------------------------------------------------------------*/
Expand Down

0 comments on commit b1a6f24

Please sign in to comment.