Commit 21641e3f authored by Pete Zaitcev's avatar Pete Zaitcev Committed by 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: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: default avatarPete Zaitcev <zaitcev@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 946b960d
......@@ -1165,7 +1165,7 @@ int __init mon_bin_init(void)
return rc;
}
void __exit mon_bin_exit(void)
void mon_bin_exit(void)
{
cdev_del(&mon_bin_cdev);
unregister_chrdev_region(mon_bin_dev0, MON_BIN_MAX_MINOR);
......
......@@ -520,7 +520,7 @@ int __init mon_text_init(void)
return 0;
}
void __exit mon_text_exit(void)
void mon_text_exit(void)
{
debugfs_remove(mon_dir);
}
......@@ -57,9 +57,9 @@ void mon_text_del(struct mon_bus *mbus);
// void mon_bin_add(struct mon_bus *);
int __init mon_text_init(void);
void __exit mon_text_exit(void);
void mon_text_exit(void);
int __init mon_bin_init(void);
void __exit mon_bin_exit(void);
void mon_bin_exit(void);
/*
* DMA interface.
......
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