Input: convert SPI drivers to use module_spi_driver()
This patch converts the drivers in drivers/input/* to use the module_spi_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:

committed by
Dmitry Torokhov

parent
0f1142a514
commit
ca83922e1c
@@ -123,17 +123,7 @@ static struct spi_driver ad714x_spi_driver = {
|
||||
.remove = __devexit_p(ad714x_spi_remove),
|
||||
};
|
||||
|
||||
static __init int ad714x_spi_init(void)
|
||||
{
|
||||
return spi_register_driver(&ad714x_spi_driver);
|
||||
}
|
||||
module_init(ad714x_spi_init);
|
||||
|
||||
static __exit void ad714x_spi_exit(void)
|
||||
{
|
||||
spi_unregister_driver(&ad714x_spi_driver);
|
||||
}
|
||||
module_exit(ad714x_spi_exit);
|
||||
module_spi_driver(ad714x_spi_driver);
|
||||
|
||||
MODULE_DESCRIPTION("Analog Devices AD714X Capacitance Touch Sensor SPI Bus Driver");
|
||||
MODULE_AUTHOR("Barry Song <21cnbao@gmail.com>");
|
||||
|
Reference in New Issue
Block a user