Commit 80c2442e authored by David S. Miller's avatar David S. Miller

[USB]: hiddev_exit() can no longer be __exit, called from init code now.

parent 6cea4e9e
...@@ -798,7 +798,7 @@ int __init hiddev_init(void) ...@@ -798,7 +798,7 @@ int __init hiddev_init(void)
return usb_register(&hiddev_driver); return usb_register(&hiddev_driver);
} }
void __exit hiddev_exit(void) void hiddev_exit(void)
{ {
usb_deregister(&hiddev_driver); usb_deregister(&hiddev_driver);
devfs_remove("usb/hid"); devfs_remove("usb/hid");
......
...@@ -207,7 +207,7 @@ void hiddev_hid_event(struct hid_device *hid, struct hid_field *field, ...@@ -207,7 +207,7 @@ void hiddev_hid_event(struct hid_device *hid, struct hid_field *field,
struct hid_usage *usage, __s32 value, struct pt_regs *regs); struct hid_usage *usage, __s32 value, struct pt_regs *regs);
void hiddev_report_event(struct hid_device *hid, struct hid_report *report); void hiddev_report_event(struct hid_device *hid, struct hid_report *report);
int __init hiddev_init(void); int __init hiddev_init(void);
void __exit hiddev_exit(void); void hiddev_exit(void);
#else #else
static inline int hiddev_connect(struct hid_device *hid) { return -1; } static inline int hiddev_connect(struct hid_device *hid) { return -1; }
static inline void hiddev_disconnect(struct hid_device *hid) { } static inline void hiddev_disconnect(struct hid_device *hid) { }
......
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