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

Commit 90ceb964 authored by Peter Korsgaard's avatar Peter Korsgaard Committed by Linus Torvalds
Browse files

serial: samsung.c: mark s3c24xx_serial_remove as __devexit



Mark the remove function as __devexit so it gets eliminated in
CONFIG_HOTPLUG=n builds.  Saves ~100 bytes.

Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
Acked-by: default avatarBen Dooks <ben-linux@fluff.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 099d5270
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -78,7 +78,7 @@ static int s3c2400_serial_probe(struct platform_device *dev)

static struct platform_driver s3c2400_serial_drv = {
	.probe		= s3c2400_serial_probe,
	.remove		= s3c24xx_serial_remove,
	.remove		= __devexit_p(s3c24xx_serial_remove),
	.driver		= {
		.name	= "s3c2400-uart",
		.owner	= THIS_MODULE,
+1 −1
Original line number Diff line number Diff line
@@ -90,7 +90,7 @@ static int s3c2410_serial_probe(struct platform_device *dev)

static struct platform_driver s3c2410_serial_drv = {
	.probe		= s3c2410_serial_probe,
	.remove		= s3c24xx_serial_remove,
	.remove		= __devexit_p(s3c24xx_serial_remove),
	.driver		= {
		.name	= "s3c2410-uart",
		.owner	= THIS_MODULE,
+1 −1
Original line number Diff line number Diff line
@@ -123,7 +123,7 @@ static int s3c2412_serial_probe(struct platform_device *dev)

static struct platform_driver s3c2412_serial_drv = {
	.probe		= s3c2412_serial_probe,
	.remove		= s3c24xx_serial_remove,
	.remove		= __devexit_p(s3c24xx_serial_remove),
	.driver		= {
		.name	= "s3c2412-uart",
		.owner	= THIS_MODULE,
+1 −1
Original line number Diff line number Diff line
@@ -153,7 +153,7 @@ static int s3c2440_serial_probe(struct platform_device *dev)

static struct platform_driver s3c2440_serial_drv = {
	.probe		= s3c2440_serial_probe,
	.remove		= s3c24xx_serial_remove,
	.remove		= __devexit_p(s3c24xx_serial_remove),
	.driver		= {
		.name	= "s3c2440-uart",
		.owner	= THIS_MODULE,
+1 −1
Original line number Diff line number Diff line
@@ -94,7 +94,7 @@ static int s3c24a0_serial_probe(struct platform_device *dev)

static struct platform_driver s3c24a0_serial_drv = {
	.probe		= s3c24a0_serial_probe,
	.remove		= s3c24xx_serial_remove,
	.remove		= __devexit_p(s3c24xx_serial_remove),
	.driver		= {
		.name	= "s3c24a0-uart",
		.owner	= THIS_MODULE,
Loading