Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 37becf6e authored by Wei Yongjun's avatar Wei Yongjun Committed by Jiri Kosina
Browse files

HID: intel-ish-hid: use module_pci_driver to simplify the code



Use the module_pci_driver() macro to make the code simpler
by eliminating module_init and module_exit calls.

Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Acked-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 67c0fe42
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -311,18 +311,7 @@ static struct pci_driver ish_driver = {
	.driver.pm = ISHTP_ISH_PM_OPS,
};

static int __init ish_driver_init(void)
{
	return pci_register_driver(&ish_driver);
}

static void __exit ish_driver_exit(void)
{
	pci_unregister_driver(&ish_driver);
}

module_init(ish_driver_init);
module_exit(ish_driver_exit);
module_pci_driver(ish_driver);

/* Original author */
MODULE_AUTHOR("Daniel Drubin <daniel.drubin@intel.com>");