mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-27 11:55:53 +00:00
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>
This commit is contained in:
parent
8de303bae4
commit
3bdec670df
@ -318,19 +318,8 @@ static struct platform_driver ibmpowernv_driver = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init ibmpowernv_init(void)
|
module_platform_driver(ibmpowernv_driver);
|
||||||
{
|
|
||||||
return platform_driver_register(&ibmpowernv_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void __exit ibmpowernv_exit(void)
|
|
||||||
{
|
|
||||||
platform_driver_unregister(&ibmpowernv_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
MODULE_AUTHOR("Neelesh Gupta <neelegup@linux.vnet.ibm.com>");
|
MODULE_AUTHOR("Neelesh Gupta <neelegup@linux.vnet.ibm.com>");
|
||||||
MODULE_DESCRIPTION("IBM POWERNV platform sensors");
|
MODULE_DESCRIPTION("IBM POWERNV platform sensors");
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
|
||||||
module_init(ibmpowernv_init);
|
|
||||||
module_exit(ibmpowernv_exit);
|
|
||||||
|
Loading…
Reference in New Issue
Block a user