aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/ad7879-spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/touchscreen/ad7879-spi.c')
-rw-r--r--drivers/input/touchscreen/ad7879-spi.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/input/touchscreen/ad7879-spi.c b/drivers/input/touchscreen/ad7879-spi.c
index 9b2e1c2b1971..db49abf056ba 100644
--- a/drivers/input/touchscreen/ad7879-spi.c
+++ b/drivers/input/touchscreen/ad7879-spi.c
@@ -157,17 +157,7 @@ static struct spi_driver ad7879_spi_driver = {
157 .remove = __devexit_p(ad7879_spi_remove), 157 .remove = __devexit_p(ad7879_spi_remove),
158}; 158};
159 159
160static int __init ad7879_spi_init(void) 160module_spi_driver(ad7879_spi_driver);
161{
162 return spi_register_driver(&ad7879_spi_driver);
163}
164module_init(ad7879_spi_init);
165
166static void __exit ad7879_spi_exit(void)
167{
168 spi_unregister_driver(&ad7879_spi_driver);
169}
170module_exit(ad7879_spi_exit);
171 161
172MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); 162MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
173MODULE_DESCRIPTION("AD7879(-1) touchscreen SPI bus driver"); 163MODULE_DESCRIPTION("AD7879(-1) touchscreen SPI bus driver");