diff options
Diffstat (limited to 'drivers/input/misc/pm8xxx-vibrator.c')
-rw-r--r-- | drivers/input/misc/pm8xxx-vibrator.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/input/misc/pm8xxx-vibrator.c b/drivers/input/misc/pm8xxx-vibrator.c index 43192930824b..dfbfb463ea5d 100644 --- a/drivers/input/misc/pm8xxx-vibrator.c +++ b/drivers/input/misc/pm8xxx-vibrator.c | |||
@@ -277,18 +277,7 @@ static struct platform_driver pm8xxx_vib_driver = { | |||
277 | .pm = &pm8xxx_vib_pm_ops, | 277 | .pm = &pm8xxx_vib_pm_ops, |
278 | }, | 278 | }, |
279 | }; | 279 | }; |
280 | 280 | module_platform_driver(pm8xxx_vib_driver); | |
281 | static int __init pm8xxx_vib_init(void) | ||
282 | { | ||
283 | return platform_driver_register(&pm8xxx_vib_driver); | ||
284 | } | ||
285 | module_init(pm8xxx_vib_init); | ||
286 | |||
287 | static void __exit pm8xxx_vib_exit(void) | ||
288 | { | ||
289 | platform_driver_unregister(&pm8xxx_vib_driver); | ||
290 | } | ||
291 | module_exit(pm8xxx_vib_exit); | ||
292 | 281 | ||
293 | MODULE_ALIAS("platform:pm8xxx_vib"); | 282 | MODULE_ALIAS("platform:pm8xxx_vib"); |
294 | MODULE_DESCRIPTION("PMIC8xxx vibrator driver based on ff-memless framework"); | 283 | MODULE_DESCRIPTION("PMIC8xxx vibrator driver based on ff-memless framework"); |