From: Peter Huewe Date: Mon, 16 Mar 2015 20:46:35 +0000 (+0100) Subject: PNP: net/sb1000: Use module_pnp_driver to register driver X-Git-Tag: v4.1-rc1~131^2~4^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ed03538aa8d5f03432ddd5ed73fc0ba2725af93d;p=karo-tx-linux.git 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 Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/net/sb1000.c b/drivers/net/sb1000.c index 66c2f1a01963..aad0b59d41e3 100644 --- a/drivers/net/sb1000.c +++ b/drivers/net/sb1000.c @@ -1175,17 +1175,4 @@ MODULE_AUTHOR("Franco Venturi "); 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);