提交 21641e3f 编写于 作者: P Pete Zaitcev 提交者: Greg Kroah-Hartman

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: NAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: NPete Zaitcev <zaitcev@redhat.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 946b960d
...@@ -1165,7 +1165,7 @@ int __init mon_bin_init(void) ...@@ -1165,7 +1165,7 @@ int __init mon_bin_init(void)
return rc; return rc;
} }
void __exit mon_bin_exit(void) void mon_bin_exit(void)
{ {
cdev_del(&mon_bin_cdev); cdev_del(&mon_bin_cdev);
unregister_chrdev_region(mon_bin_dev0, MON_BIN_MAX_MINOR); unregister_chrdev_region(mon_bin_dev0, MON_BIN_MAX_MINOR);
......
...@@ -520,7 +520,7 @@ int __init mon_text_init(void) ...@@ -520,7 +520,7 @@ int __init mon_text_init(void)
return 0; return 0;
} }
void __exit mon_text_exit(void) void mon_text_exit(void)
{ {
debugfs_remove(mon_dir); debugfs_remove(mon_dir);
} }
...@@ -57,9 +57,9 @@ void mon_text_del(struct mon_bus *mbus); ...@@ -57,9 +57,9 @@ void mon_text_del(struct mon_bus *mbus);
// void mon_bin_add(struct mon_bus *); // void mon_bin_add(struct mon_bus *);
int __init mon_text_init(void); int __init mon_text_init(void);
void __exit mon_text_exit(void); void mon_text_exit(void);
int __init mon_bin_init(void); int __init mon_bin_init(void);
void __exit mon_bin_exit(void); void mon_bin_exit(void);
/* /*
* DMA interface. * DMA interface.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册