diff options
Diffstat (limited to 'drivers/hwmon/wm8350-hwmon.c')
| -rw-r--r-- | drivers/hwmon/wm8350-hwmon.c | 20 | 
1 files changed, 5 insertions, 15 deletions
diff --git a/drivers/hwmon/wm8350-hwmon.c b/drivers/hwmon/wm8350-hwmon.c index 13290595ca8..64bf75c9442 100644 --- a/drivers/hwmon/wm8350-hwmon.c +++ b/drivers/hwmon/wm8350-hwmon.c @@ -34,7 +34,7 @@ static ssize_t show_name(struct device *dev,  	return sprintf(buf, "wm8350\n");  } -static const char *input_names[] = { +static const char * const input_names[] = {  	[WM8350_AUXADC_USB]  = "USB",  	[WM8350_AUXADC_LINE] = "Line",  	[WM8350_AUXADC_BATT] = "Battery", @@ -91,7 +91,7 @@ static const struct attribute_group wm8350_attr_group = {  	.attrs	= wm8350_attributes,  }; -static int __devinit wm8350_hwmon_probe(struct platform_device *pdev) +static int wm8350_hwmon_probe(struct platform_device *pdev)  {  	struct wm8350 *wm8350 = platform_get_drvdata(pdev);  	int ret; @@ -114,7 +114,7 @@ err:  	return ret;  } -static int __devexit wm8350_hwmon_remove(struct platform_device *pdev) +static int wm8350_hwmon_remove(struct platform_device *pdev)  {  	struct wm8350 *wm8350 = platform_get_drvdata(pdev); @@ -126,24 +126,14 @@ static int __devexit wm8350_hwmon_remove(struct platform_device *pdev)  static struct platform_driver wm8350_hwmon_driver = {  	.probe = wm8350_hwmon_probe, -	.remove = __devexit_p(wm8350_hwmon_remove), +	.remove = wm8350_hwmon_remove,  	.driver = {  		.name = "wm8350-hwmon",  		.owner = THIS_MODULE,  	},  }; -static int __init wm8350_hwmon_init(void) -{ -	return platform_driver_register(&wm8350_hwmon_driver); -} -module_init(wm8350_hwmon_init); - -static void __exit wm8350_hwmon_exit(void) -{ -	platform_driver_unregister(&wm8350_hwmon_driver); -} -module_exit(wm8350_hwmon_exit); +module_platform_driver(wm8350_hwmon_driver);  MODULE_AUTHOR("Mark Brown <broonie@opensource.wolfsonmicro.com>");  MODULE_DESCRIPTION("WM8350 Hardware Monitoring");  | 
