diff options
Diffstat (limited to 'drivers/misc/lis3lv02d/lis3lv02d_spi.c')
-rw-r--r-- | drivers/misc/lis3lv02d/lis3lv02d_spi.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/misc/lis3lv02d/lis3lv02d_spi.c b/drivers/misc/lis3lv02d/lis3lv02d_spi.c index b2c1be12d16f..80880e984b4f 100644 --- a/drivers/misc/lis3lv02d/lis3lv02d_spi.c +++ b/drivers/misc/lis3lv02d/lis3lv02d_spi.c | |||
@@ -126,18 +126,7 @@ static struct spi_driver lis302dl_spi_driver = { | |||
126 | .remove = __devexit_p(lis302dl_spi_remove), | 126 | .remove = __devexit_p(lis302dl_spi_remove), |
127 | }; | 127 | }; |
128 | 128 | ||
129 | static int __init lis302dl_init(void) | 129 | module_spi_driver(lis302dl_spi_driver); |
130 | { | ||
131 | return spi_register_driver(&lis302dl_spi_driver); | ||
132 | } | ||
133 | |||
134 | static void __exit lis302dl_exit(void) | ||
135 | { | ||
136 | spi_unregister_driver(&lis302dl_spi_driver); | ||
137 | } | ||
138 | |||
139 | module_init(lis302dl_init); | ||
140 | module_exit(lis302dl_exit); | ||
141 | 130 | ||
142 | MODULE_AUTHOR("Daniel Mack <daniel@caiaq.de>"); | 131 | MODULE_AUTHOR("Daniel Mack <daniel@caiaq.de>"); |
143 | MODULE_DESCRIPTION("lis3lv02d SPI glue layer"); | 132 | MODULE_DESCRIPTION("lis3lv02d SPI glue layer"); |