Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8698a938 authored by Sachin Kamat's avatar Sachin Kamat Committed by Dmitry Torokhov
Browse files

Input: atmel-wm97xx - use module_platform_driver_probe macro



module_platform_driver_probe() eliminates the boilerplate and simplifies
the code.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 07beda4f
Loading
Loading
Loading
Loading
+1 −11
Original line number Diff line number Diff line
@@ -432,17 +432,7 @@ static struct platform_driver atmel_wm97xx_driver = {
	},
};

static int __init atmel_wm97xx_init(void)
{
	return platform_driver_probe(&atmel_wm97xx_driver, atmel_wm97xx_probe);
}
module_init(atmel_wm97xx_init);

static void __exit atmel_wm97xx_exit(void)
{
	platform_driver_unregister(&atmel_wm97xx_driver);
}
module_exit(atmel_wm97xx_exit);
module_platform_driver_probe(atmel_wm97xx_driver, atmel_wm97xx_probe);

MODULE_AUTHOR("Hans-Christian Egtvedt <egtvedt@samfundet.no>");
MODULE_DESCRIPTION("wm97xx continuous touch driver for Atmel AT91 and AVR32");