HID: Use module_hid_driver macro
Use the new module_hid_driver macro in all HID drivers that have a simple register/unregister init/exit. This also converts the hid drivers that test for a failure of hid_register_driver() and report the failure. Using module_hid_driver in those drivers removes the failure message. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
このコミットが含まれているのは:
@@ -192,19 +192,7 @@ static struct hid_driver ax_driver = {
|
||||
.probe = ax_probe,
|
||||
.remove = ax_remove,
|
||||
};
|
||||
|
||||
static int __init ax_init(void)
|
||||
{
|
||||
return hid_register_driver(&ax_driver);
|
||||
}
|
||||
|
||||
static void __exit ax_exit(void)
|
||||
{
|
||||
hid_unregister_driver(&ax_driver);
|
||||
}
|
||||
|
||||
module_init(ax_init);
|
||||
module_exit(ax_exit);
|
||||
module_hid_driver(ax_driver);
|
||||
|
||||
MODULE_AUTHOR("Sergei Kolzun");
|
||||
MODULE_DESCRIPTION("Force feedback support for ACRUX game controllers");
|
||||
|
新しいイシューから参照
ユーザーをブロックする