mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-03-05 03:01:42 +00:00
Input: atmel-wm97xx - use module_platform_driver_probe macro
module_platform_driver_probe() eliminates the boilerplate and simplifies the code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
07beda4f6d
commit
8698a93826
@ -432,17 +432,7 @@ static struct platform_driver atmel_wm97xx_driver = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init atmel_wm97xx_init(void)
|
module_platform_driver_probe(atmel_wm97xx_driver, atmel_wm97xx_probe);
|
||||||
{
|
|
||||||
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_AUTHOR("Hans-Christian Egtvedt <egtvedt@samfundet.no>");
|
MODULE_AUTHOR("Hans-Christian Egtvedt <egtvedt@samfundet.no>");
|
||||||
MODULE_DESCRIPTION("wm97xx continuous touch driver for Atmel AT91 and AVR32");
|
MODULE_DESCRIPTION("wm97xx continuous touch driver for Atmel AT91 and AVR32");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user