Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1a6f243 authored by Richard Röjfors's avatar Richard Röjfors Committed by Greg Kroah-Hartman
Browse files

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: default avatarRichard Röjfors <richard.rojfors@pelagicore.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 1917ac76
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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),
};

/*--------------------------------------------------------------------------*/