Commit 4b849727 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds

[PATCH] drivers/char/isicom.c: section fixes

This patch fixes the following bugs:
- __exit unregister_ioregion and unregister_drivers were called by
  __init isicom_init
- __init isicom_init was called by __devinit isicom_setup
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 9a5f04bf
...@@ -1756,7 +1756,7 @@ static void isicom_flush_buffer(struct tty_struct * tty) ...@@ -1756,7 +1756,7 @@ static void isicom_flush_buffer(struct tty_struct * tty)
} }
static int __init register_ioregion(void) static int __devinit register_ioregion(void)
{ {
int count, done=0; int count, done=0;
for (count=0; count < BOARD_COUNT; count++ ) { for (count=0; count < BOARD_COUNT; count++ ) {
...@@ -1771,7 +1771,7 @@ static int __init register_ioregion(void) ...@@ -1771,7 +1771,7 @@ static int __init register_ioregion(void)
return done; return done;
} }
static void __exit unregister_ioregion(void) static void unregister_ioregion(void)
{ {
int count; int count;
for (count=0; count < BOARD_COUNT; count++ ) for (count=0; count < BOARD_COUNT; count++ )
...@@ -1803,7 +1803,7 @@ static struct tty_operations isicom_ops = { ...@@ -1803,7 +1803,7 @@ static struct tty_operations isicom_ops = {
.tiocmset = isicom_tiocmset, .tiocmset = isicom_tiocmset,
}; };
static int __init register_drivers(void) static int __devinit register_drivers(void)
{ {
int error; int error;
...@@ -1834,7 +1834,7 @@ static int __init register_drivers(void) ...@@ -1834,7 +1834,7 @@ static int __init register_drivers(void)
return 0; return 0;
} }
static void __exit unregister_drivers(void) static void unregister_drivers(void)
{ {
int error = tty_unregister_driver(isicom_normal); int error = tty_unregister_driver(isicom_normal);
if (error) if (error)
...@@ -1842,7 +1842,7 @@ static void __exit unregister_drivers(void) ...@@ -1842,7 +1842,7 @@ static void __exit unregister_drivers(void)
put_tty_driver(isicom_normal); put_tty_driver(isicom_normal);
} }
static int __init register_isr(void) static int __devinit register_isr(void)
{ {
int count, done=0; int count, done=0;
unsigned long irqflags; unsigned long irqflags;
...@@ -1883,7 +1883,7 @@ static void __exit unregister_isr(void) ...@@ -1883,7 +1883,7 @@ static void __exit unregister_isr(void)
} }
} }
static int __init isicom_init(void) static int __devinit isicom_init(void)
{ {
int card, channel, base; int card, channel, base;
struct isi_port * port; struct isi_port * port;
......
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