diff options
author | Jean Delvare <khali@linux-fr.org> | 2009-12-14 21:00:27 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-15 11:53:27 -0500 |
commit | 2ea5d35a49f5c89d1d2d677fe90c71ad5a6278b6 (patch) | |
tree | 3e5eb8efe966320b93ec948c8f95674d79912c5e /drivers/serial | |
parent | e4c570c4cb7a95dbfafa3d016d2739bf3fdfe319 (diff) |
ioc3/ioc4: various section fixes
Several IOC3 and IOC4 drivers misuse the __devinit and __devexit section
markers. Use __init and __exit instead as appropriate, then add __devinit
and __devexit where they really belong for PCI drivers.
Also make ioc4_serial_init static.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Pat Gefre <pfg@sgi.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/serial')
-rw-r--r-- | drivers/serial/ioc3_serial.c | 4 | ||||
-rw-r--r-- | drivers/serial/ioc4_serial.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/serial/ioc3_serial.c b/drivers/serial/ioc3_serial.c index d8983dd5c4b2..85dc0410ac1a 100644 --- a/drivers/serial/ioc3_serial.c +++ b/drivers/serial/ioc3_serial.c | |||
@@ -2162,7 +2162,7 @@ static struct ioc3_submodule ioc3uart_ops = { | |||
2162 | /** | 2162 | /** |
2163 | * ioc3_detect - module init called, | 2163 | * ioc3_detect - module init called, |
2164 | */ | 2164 | */ |
2165 | static int __devinit ioc3uart_init(void) | 2165 | static int __init ioc3uart_init(void) |
2166 | { | 2166 | { |
2167 | int ret; | 2167 | int ret; |
2168 | 2168 | ||
@@ -2179,7 +2179,7 @@ static int __devinit ioc3uart_init(void) | |||
2179 | return ret; | 2179 | return ret; |
2180 | } | 2180 | } |
2181 | 2181 | ||
2182 | static void __devexit ioc3uart_exit(void) | 2182 | static void __exit ioc3uart_exit(void) |
2183 | { | 2183 | { |
2184 | ioc3_unregister_submodule(&ioc3uart_ops); | 2184 | ioc3_unregister_submodule(&ioc3uart_ops); |
2185 | uart_unregister_driver(&ioc3_uart); | 2185 | uart_unregister_driver(&ioc3_uart); |
diff --git a/drivers/serial/ioc4_serial.c b/drivers/serial/ioc4_serial.c index 2e02c3026d24..902b067d7e9c 100644 --- a/drivers/serial/ioc4_serial.c +++ b/drivers/serial/ioc4_serial.c | |||
@@ -2904,7 +2904,7 @@ static struct ioc4_submodule ioc4_serial_submodule = { | |||
2904 | /** | 2904 | /** |
2905 | * ioc4_serial_init - module init | 2905 | * ioc4_serial_init - module init |
2906 | */ | 2906 | */ |
2907 | int ioc4_serial_init(void) | 2907 | static int __init ioc4_serial_init(void) |
2908 | { | 2908 | { |
2909 | int ret; | 2909 | int ret; |
2910 | 2910 | ||
@@ -2926,7 +2926,7 @@ int ioc4_serial_init(void) | |||
2926 | return ioc4_register_submodule(&ioc4_serial_submodule); | 2926 | return ioc4_register_submodule(&ioc4_serial_submodule); |
2927 | } | 2927 | } |
2928 | 2928 | ||
2929 | static void __devexit ioc4_serial_exit(void) | 2929 | static void __exit ioc4_serial_exit(void) |
2930 | { | 2930 | { |
2931 | ioc4_unregister_submodule(&ioc4_serial_submodule); | 2931 | ioc4_unregister_submodule(&ioc4_serial_submodule); |
2932 | uart_unregister_driver(&ioc4_uart_rs232); | 2932 | uart_unregister_driver(&ioc4_uart_rs232); |