diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-11-12 03:36:47 -0500 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2014-11-30 23:13:13 -0500 |
commit | 3bdec670df30d515b51ab41452a9cf86a956f7e8 (patch) | |
tree | 2b2c33fc6fd10459ed906a8e32c0d62514c6c52a /drivers/hwmon | |
parent | 8de303bae48bf907138e11042268834b1227e1e7 (diff) |
hwmon: (ibmpowernv) Convert to module_platform_driver
Use module_platform_driver to simplify the code a bit.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-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 = { | |||
318 | }, | 318 | }, |
319 | }; | 319 | }; |
320 | 320 | ||
321 | static int __init ibmpowernv_init(void) | 321 | module_platform_driver(ibmpowernv_driver); |
322 | { | ||
323 | return platform_driver_register(&ibmpowernv_driver); | ||
324 | } | ||
325 | |||
326 | static void __exit ibmpowernv_exit(void) | ||
327 | { | ||
328 | platform_driver_unregister(&ibmpowernv_driver); | ||
329 | } | ||
330 | 322 | ||
331 | MODULE_AUTHOR("Neelesh Gupta <neelegup@linux.vnet.ibm.com>"); | 323 | MODULE_AUTHOR("Neelesh Gupta <neelegup@linux.vnet.ibm.com>"); |
332 | MODULE_DESCRIPTION("IBM POWERNV platform sensors"); | 324 | MODULE_DESCRIPTION("IBM POWERNV platform sensors"); |
333 | MODULE_LICENSE("GPL"); | 325 | MODULE_LICENSE("GPL"); |
334 | |||
335 | module_init(ibmpowernv_init); | ||
336 | module_exit(ibmpowernv_exit); | ||