diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-03-17 02:05:26 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-03-17 02:06:11 -0400 |
commit | ca83922e1c51c090e62bd42f3c12c84f49374a9e (patch) | |
tree | d0d7b5c307fc445abe41ae614857643b222e1528 /drivers/input/touchscreen/ad7879-spi.c | |
parent | 0f1142a514e101076bc01de2f93b242693d0f16f (diff) |
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>
Diffstat (limited to 'drivers/input/touchscreen/ad7879-spi.c')
-rw-r--r-- | drivers/input/touchscreen/ad7879-spi.c | 12 |
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 | ||
160 | static int __init ad7879_spi_init(void) | 160 | module_spi_driver(ad7879_spi_driver); |
161 | { | ||
162 | return spi_register_driver(&ad7879_spi_driver); | ||
163 | } | ||
164 | module_init(ad7879_spi_init); | ||
165 | |||
166 | static void __exit ad7879_spi_exit(void) | ||
167 | { | ||
168 | spi_unregister_driver(&ad7879_spi_driver); | ||
169 | } | ||
170 | module_exit(ad7879_spi_exit); | ||
171 | 161 | ||
172 | MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); | 162 | MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); |
173 | MODULE_DESCRIPTION("AD7879(-1) touchscreen SPI bus driver"); | 163 | MODULE_DESCRIPTION("AD7879(-1) touchscreen SPI bus driver"); |