diff options
author | Pete Zaitcev <zaitcev@redhat.com> | 2007-02-20 13:37:52 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-02-23 18:03:45 -0500 |
commit | 21641e3fb1c2e53b3a0acf68e6f62f1f82f61445 (patch) | |
tree | acfc23fb1332c76746b803085187fc261cbd0303 /drivers/usb/mon | |
parent | 946b960d13c15f050a3b848987aaca79f6a459b7 (diff) |
usbmon: Remove erroneous __exit
mon_bin_exit() and mon_text_exit() are called from __init code, so don't mark
them as __exit.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/mon')
-rw-r--r-- | drivers/usb/mon/mon_bin.c | 2 | ||||
-rw-r--r-- | drivers/usb/mon/mon_text.c | 2 | ||||
-rw-r--r-- | drivers/usb/mon/usb_mon.h | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/mon/mon_bin.c b/drivers/usb/mon/mon_bin.c index c01dfe603672..b2bedd974ac3 100644 --- a/drivers/usb/mon/mon_bin.c +++ b/drivers/usb/mon/mon_bin.c | |||
@@ -1165,7 +1165,7 @@ err_dev: | |||
1165 | return rc; | 1165 | return rc; |
1166 | } | 1166 | } |
1167 | 1167 | ||
1168 | void __exit mon_bin_exit(void) | 1168 | void mon_bin_exit(void) |
1169 | { | 1169 | { |
1170 | cdev_del(&mon_bin_cdev); | 1170 | cdev_del(&mon_bin_cdev); |
1171 | unregister_chrdev_region(mon_bin_dev0, MON_BIN_MAX_MINOR); | 1171 | unregister_chrdev_region(mon_bin_dev0, MON_BIN_MAX_MINOR); |
diff --git a/drivers/usb/mon/mon_text.c b/drivers/usb/mon/mon_text.c index d38a1279d9d9..494ee3b9a226 100644 --- a/drivers/usb/mon/mon_text.c +++ b/drivers/usb/mon/mon_text.c | |||
@@ -520,7 +520,7 @@ int __init mon_text_init(void) | |||
520 | return 0; | 520 | return 0; |
521 | } | 521 | } |
522 | 522 | ||
523 | void __exit mon_text_exit(void) | 523 | void mon_text_exit(void) |
524 | { | 524 | { |
525 | debugfs_remove(mon_dir); | 525 | debugfs_remove(mon_dir); |
526 | } | 526 | } |
diff --git a/drivers/usb/mon/usb_mon.h b/drivers/usb/mon/usb_mon.h index 4f949ce8a7f3..efdfd8993d9e 100644 --- a/drivers/usb/mon/usb_mon.h +++ b/drivers/usb/mon/usb_mon.h | |||
@@ -57,9 +57,9 @@ void mon_text_del(struct mon_bus *mbus); | |||
57 | // void mon_bin_add(struct mon_bus *); | 57 | // void mon_bin_add(struct mon_bus *); |
58 | 58 | ||
59 | int __init mon_text_init(void); | 59 | int __init mon_text_init(void); |
60 | void __exit mon_text_exit(void); | 60 | void mon_text_exit(void); |
61 | int __init mon_bin_init(void); | 61 | int __init mon_bin_init(void); |
62 | void __exit mon_bin_exit(void); | 62 | void mon_bin_exit(void); |
63 | 63 | ||
64 | /* | 64 | /* |
65 | * DMA interface. | 65 | * DMA interface. |