aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-da9052.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-12-07 11:24:00 -0500
committerGrant Likely <grant.likely@secretlab.ca>2012-01-02 02:26:06 -0500
commit6f61415e9c4c0ab02c8eda7671bb652db4863cc0 (patch)
tree689e7f50b2d6de5a5a36d72b2ba72a742d39341c /drivers/gpio/gpio-da9052.c
parentf134759955bbb5bf28a8d2c6fe5aa201d1ffb860 (diff)
gpio: Convert GPIO drivers to module_platform_driver
Where appropriate factor out some boilerplate code for platform device registration into module_platform_driver. Drivers that don't use the standard module_init initcall haven't been converted. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/gpio/gpio-da9052.c')
-rw-r--r--drivers/gpio/gpio-da9052.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/gpio/gpio-da9052.c b/drivers/gpio/gpio-da9052.c
index 038f5eb8b13d..58ac3777f0c4 100644
--- a/drivers/gpio/gpio-da9052.c
+++ b/drivers/gpio/gpio-da9052.c
@@ -259,17 +259,7 @@ static struct platform_driver da9052_gpio_driver = {
259 }, 259 },
260}; 260};
261 261
262static int __init da9052_gpio_init(void) 262module_platform_driver(da9052_gpio_driver);
263{
264 return platform_driver_register(&da9052_gpio_driver);
265}
266module_init(da9052_gpio_init);
267
268static void __exit da9052_gpio_exit(void)
269{
270 return platform_driver_unregister(&da9052_gpio_driver);
271}
272module_exit(da9052_gpio_exit);
273 263
274MODULE_AUTHOR("David Dajun Chen <dchen@diasemi.com>"); 264MODULE_AUTHOR("David Dajun Chen <dchen@diasemi.com>");
275MODULE_DESCRIPTION("DA9052 GPIO Device Driver"); 265MODULE_DESCRIPTION("DA9052 GPIO Device Driver");