Commit f40fb63e authored by Jingoo Han's avatar Jingoo Han Committed by Guenter Roeck

hwmon: (mc13783-adc.c) use module_platform_driver_probe()

This patch uses module_platform_driver_probe() macro which makes
the code smaller and simpler.
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 31880c37
...@@ -273,18 +273,7 @@ static struct platform_driver mc13783_adc_driver = { ...@@ -273,18 +273,7 @@ static struct platform_driver mc13783_adc_driver = {
.id_table = mc13783_adc_idtable, .id_table = mc13783_adc_idtable,
}; };
static int __init mc13783_adc_init(void) module_platform_driver_probe(mc13783_adc_driver, mc13783_adc_probe);
{
return platform_driver_probe(&mc13783_adc_driver, mc13783_adc_probe);
}
static void __exit mc13783_adc_exit(void)
{
platform_driver_unregister(&mc13783_adc_driver);
}
module_init(mc13783_adc_init);
module_exit(mc13783_adc_exit);
MODULE_DESCRIPTION("MC13783 ADC driver"); MODULE_DESCRIPTION("MC13783 ADC driver");
MODULE_AUTHOR("Luotao Fu <l.fu@pengutronix.de>"); MODULE_AUTHOR("Luotao Fu <l.fu@pengutronix.de>");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment