aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/ads7846.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/touchscreen/ads7846.c')
-rw-r--r--drivers/input/touchscreen/ads7846.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c
index 23fd90185659..f02028ec3db6 100644
--- a/drivers/input/touchscreen/ads7846.c
+++ b/drivers/input/touchscreen/ads7846.c
@@ -1433,17 +1433,7 @@ static struct spi_driver ads7846_driver = {
1433 .remove = __devexit_p(ads7846_remove), 1433 .remove = __devexit_p(ads7846_remove),
1434}; 1434};
1435 1435
1436static int __init ads7846_init(void) 1436module_spi_driver(ads7846_driver);
1437{
1438 return spi_register_driver(&ads7846_driver);
1439}
1440module_init(ads7846_init);
1441
1442static void __exit ads7846_exit(void)
1443{
1444 spi_unregister_driver(&ads7846_driver);
1445}
1446module_exit(ads7846_exit);
1447 1437
1448MODULE_DESCRIPTION("ADS7846 TouchScreen Driver"); 1438MODULE_DESCRIPTION("ADS7846 TouchScreen Driver");
1449MODULE_LICENSE("GPL"); 1439MODULE_LICENSE("GPL");