diff options
-rw-r--r-- | drivers/hwmon/ibmpowernv.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/hwmon/ibmpowernv.c b/drivers/hwmon/ibmpowernv.c index c7577b8f17a8..7c2c7be182f2 100644 --- a/drivers/hwmon/ibmpowernv.c +++ b/drivers/hwmon/ibmpowernv.c @@ -318,19 +318,8 @@ static struct platform_driver ibmpowernv_driver = { }, }; -static int __init ibmpowernv_init(void) -{ - return platform_driver_register(&ibmpowernv_driver); -} - -static void __exit ibmpowernv_exit(void) -{ - platform_driver_unregister(&ibmpowernv_driver); -} +module_platform_driver(ibmpowernv_driver); MODULE_AUTHOR("Neelesh Gupta <neelegup@linux.vnet.ibm.com>"); MODULE_DESCRIPTION("IBM POWERNV platform sensors"); MODULE_LICENSE("GPL"); - -module_init(ibmpowernv_init); -module_exit(ibmpowernv_exit); |