Skip to content

Commit

Permalink
usbmon: Remove erroneous __exit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pete Zaitcev authored and Greg Kroah-Hartman committed Feb 23, 2007
1 parent 946b960 commit 21641e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/usb/mon/mon_bin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/mon/mon_text.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
4 changes: 2 additions & 2 deletions drivers/usb/mon/usb_mon.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 21641e3

Please sign in to comment.