diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-09-04 07:28:35 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-09-05 19:43:15 -0400 |
commit | 38e271cde5ae62b0b94ff8e8e7e1e1395da7dbf5 (patch) | |
tree | a888e090335dd9e088475db3f6a8d63f1ef8c934 | |
parent | 38ab18caa0ad9c844ba60f9618c5de6d6954da3e (diff) |
spi: spi-tle62x0: Use module_spi_driver macro
module_spi_driver eliminates module_init and module_exit
calls and makes the code simpler.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | drivers/spi/spi-tle62x0.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/spi/spi-tle62x0.c b/drivers/spi/spi-tle62x0.c index 0ce5c12aab55..24421024deaf 100644 --- a/drivers/spi/spi-tle62x0.c +++ b/drivers/spi/spi-tle62x0.c | |||
@@ -316,18 +316,7 @@ static struct spi_driver tle62x0_driver = { | |||
316 | .remove = __devexit_p(tle62x0_remove), | 316 | .remove = __devexit_p(tle62x0_remove), |
317 | }; | 317 | }; |
318 | 318 | ||
319 | static __init int tle62x0_init(void) | 319 | module_spi_driver(tle62x0_driver); |
320 | { | ||
321 | return spi_register_driver(&tle62x0_driver); | ||
322 | } | ||
323 | |||
324 | static __exit void tle62x0_exit(void) | ||
325 | { | ||
326 | spi_unregister_driver(&tle62x0_driver); | ||
327 | } | ||
328 | |||
329 | module_init(tle62x0_init); | ||
330 | module_exit(tle62x0_exit); | ||
331 | 320 | ||
332 | MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>"); | 321 | MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>"); |
333 | MODULE_DESCRIPTION("TLE62x0 SPI driver"); | 322 | MODULE_DESCRIPTION("TLE62x0 SPI driver"); |