mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 03:10:12 +00:00
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>
This commit is contained in:
parent
946b960d13
commit
21641e3fb1
3 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||||
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);
|
||||||
// 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.
|
||||||
|
|
Loading…
Reference in a new issue