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

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
...@@ -78,7 +78,7 @@ static int s3c2400_serial_probe(struct platform_device *dev) ...@@ -78,7 +78,7 @@ static int s3c2400_serial_probe(struct platform_device *dev)
static struct platform_driver s3c2400_serial_drv = { static struct platform_driver s3c2400_serial_drv = {
.probe = s3c2400_serial_probe, .probe = s3c2400_serial_probe,
.remove = s3c24xx_serial_remove, .remove = __devexit_p(s3c24xx_serial_remove),
.driver = { .driver = {
.name = "s3c2400-uart", .name = "s3c2400-uart",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -90,7 +90,7 @@ static int s3c2410_serial_probe(struct platform_device *dev) ...@@ -90,7 +90,7 @@ static int s3c2410_serial_probe(struct platform_device *dev)
static struct platform_driver s3c2410_serial_drv = { static struct platform_driver s3c2410_serial_drv = {
.probe = s3c2410_serial_probe, .probe = s3c2410_serial_probe,
.remove = s3c24xx_serial_remove, .remove = __devexit_p(s3c24xx_serial_remove),
.driver = { .driver = {
.name = "s3c2410-uart", .name = "s3c2410-uart",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -123,7 +123,7 @@ static int s3c2412_serial_probe(struct platform_device *dev) ...@@ -123,7 +123,7 @@ static int s3c2412_serial_probe(struct platform_device *dev)
static struct platform_driver s3c2412_serial_drv = { static struct platform_driver s3c2412_serial_drv = {
.probe = s3c2412_serial_probe, .probe = s3c2412_serial_probe,
.remove = s3c24xx_serial_remove, .remove = __devexit_p(s3c24xx_serial_remove),
.driver = { .driver = {
.name = "s3c2412-uart", .name = "s3c2412-uart",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -153,7 +153,7 @@ static int s3c2440_serial_probe(struct platform_device *dev) ...@@ -153,7 +153,7 @@ static int s3c2440_serial_probe(struct platform_device *dev)
static struct platform_driver s3c2440_serial_drv = { static struct platform_driver s3c2440_serial_drv = {
.probe = s3c2440_serial_probe, .probe = s3c2440_serial_probe,
.remove = s3c24xx_serial_remove, .remove = __devexit_p(s3c24xx_serial_remove),
.driver = { .driver = {
.name = "s3c2440-uart", .name = "s3c2440-uart",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -94,7 +94,7 @@ static int s3c24a0_serial_probe(struct platform_device *dev) ...@@ -94,7 +94,7 @@ static int s3c24a0_serial_probe(struct platform_device *dev)
static struct platform_driver s3c24a0_serial_drv = { static struct platform_driver s3c24a0_serial_drv = {
.probe = s3c24a0_serial_probe, .probe = s3c24a0_serial_probe,
.remove = s3c24xx_serial_remove, .remove = __devexit_p(s3c24xx_serial_remove),
.driver = { .driver = {
.name = "s3c24a0-uart", .name = "s3c24a0-uart",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -124,7 +124,7 @@ static int s3c6400_serial_probe(struct platform_device *dev) ...@@ -124,7 +124,7 @@ static int s3c6400_serial_probe(struct platform_device *dev)
static struct platform_driver s3c6400_serial_drv = { static struct platform_driver s3c6400_serial_drv = {
.probe = s3c6400_serial_probe, .probe = s3c6400_serial_probe,
.remove = s3c24xx_serial_remove, .remove = __devexit_p(s3c24xx_serial_remove),
.driver = { .driver = {
.name = "s3c6400-uart", .name = "s3c6400-uart",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
...@@ -1174,7 +1174,7 @@ int s3c24xx_serial_probe(struct platform_device *dev, ...@@ -1174,7 +1174,7 @@ int s3c24xx_serial_probe(struct platform_device *dev,
EXPORT_SYMBOL_GPL(s3c24xx_serial_probe); EXPORT_SYMBOL_GPL(s3c24xx_serial_probe);
int s3c24xx_serial_remove(struct platform_device *dev) int __devexit s3c24xx_serial_remove(struct platform_device *dev)
{ {
struct uart_port *port = s3c24xx_dev_to_port(&dev->dev); struct uart_port *port = s3c24xx_dev_to_port(&dev->dev);
......
...@@ -72,7 +72,7 @@ struct s3c24xx_uart_port { ...@@ -72,7 +72,7 @@ struct s3c24xx_uart_port {
extern int s3c24xx_serial_probe(struct platform_device *dev, extern int s3c24xx_serial_probe(struct platform_device *dev,
struct s3c24xx_uart_info *uart); struct s3c24xx_uart_info *uart);
extern int s3c24xx_serial_remove(struct platform_device *dev); extern int __devexit s3c24xx_serial_remove(struct platform_device *dev);
extern int s3c24xx_serial_initconsole(struct platform_driver *drv, extern int s3c24xx_serial_initconsole(struct platform_driver *drv,
struct s3c24xx_uart_info *uart); struct s3c24xx_uart_info *uart);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment