forked from luck/tmp_suning_uos_patched
PNP: net/sb1000: Use module_pnp_driver to register driver
Removing some boilerplate by using module_pnp_driver instead of calling register and unregister in the otherwise empty init/exit functions Signed-off-by: Peter Huewe <peterhuewe@gmx.de> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
af638a0407
commit
ed03538aa8
@ -1175,17 +1175,4 @@ MODULE_AUTHOR("Franco Venturi <fventuri@mediaone.net>");
|
||||
MODULE_DESCRIPTION("General Instruments SB1000 driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
static int __init
|
||||
sb1000_init(void)
|
||||
{
|
||||
return pnp_register_driver(&sb1000_driver);
|
||||
}
|
||||
|
||||
static void __exit
|
||||
sb1000_exit(void)
|
||||
{
|
||||
pnp_unregister_driver(&sb1000_driver);
|
||||
}
|
||||
|
||||
module_init(sb1000_init);
|
||||
module_exit(sb1000_exit);
|
||||
module_pnp_driver(sb1000_driver);
|
||||
|
Loading…
Reference in New Issue
Block a user