Skip to content

Commit

Permalink
hwmon: (ibmpowernv) Convert to module_platform_driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Guenter Roeck committed Dec 1, 2014
1 parent 8de303b commit 3bdec67
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drivers/hwmon/ibmpowernv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 3bdec67

Please sign in to comment.