diff options
Diffstat (limited to 'drivers/leds/leds-dac124s085.c')
-rw-r--r-- | drivers/leds/leds-dac124s085.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/leds/leds-dac124s085.c b/drivers/leds/leds-dac124s085.c index 31cf0d60a9a5..d56c14269ff0 100644 --- a/drivers/leds/leds-dac124s085.c +++ b/drivers/leds/leds-dac124s085.c | |||
@@ -131,18 +131,7 @@ static struct spi_driver dac124s085_driver = { | |||
131 | }, | 131 | }, |
132 | }; | 132 | }; |
133 | 133 | ||
134 | static int __init dac124s085_leds_init(void) | 134 | module_spi_driver(dac124s085_driver); |
135 | { | ||
136 | return spi_register_driver(&dac124s085_driver); | ||
137 | } | ||
138 | |||
139 | static void __exit dac124s085_leds_exit(void) | ||
140 | { | ||
141 | spi_unregister_driver(&dac124s085_driver); | ||
142 | } | ||
143 | |||
144 | module_init(dac124s085_leds_init); | ||
145 | module_exit(dac124s085_leds_exit); | ||
146 | 135 | ||
147 | MODULE_AUTHOR("Guennadi Liakhovetski <lg@denx.de>"); | 136 | MODULE_AUTHOR("Guennadi Liakhovetski <lg@denx.de>"); |
148 | MODULE_DESCRIPTION("DAC124S085 LED driver"); | 137 | MODULE_DESCRIPTION("DAC124S085 LED driver"); |