diff options
Diffstat (limited to 'drivers/mfd/jz4740-adc.c')
-rw-r--r-- | drivers/mfd/jz4740-adc.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/drivers/mfd/jz4740-adc.c b/drivers/mfd/jz4740-adc.c index ef39528088f..87662a17dec 100644 --- a/drivers/mfd/jz4740-adc.c +++ b/drivers/mfd/jz4740-adc.c | |||
@@ -181,7 +181,7 @@ static struct resource jz4740_battery_resources[] = { | |||
181 | }, | 181 | }, |
182 | }; | 182 | }; |
183 | 183 | ||
184 | const struct mfd_cell jz4740_adc_cells[] = { | 184 | static struct mfd_cell jz4740_adc_cells[] = { |
185 | { | 185 | { |
186 | .id = 0, | 186 | .id = 0, |
187 | .name = "jz4740-hwmon", | 187 | .name = "jz4740-hwmon", |
@@ -338,17 +338,7 @@ static struct platform_driver jz4740_adc_driver = { | |||
338 | }, | 338 | }, |
339 | }; | 339 | }; |
340 | 340 | ||
341 | static int __init jz4740_adc_init(void) | 341 | module_platform_driver(jz4740_adc_driver); |
342 | { | ||
343 | return platform_driver_register(&jz4740_adc_driver); | ||
344 | } | ||
345 | module_init(jz4740_adc_init); | ||
346 | |||
347 | static void __exit jz4740_adc_exit(void) | ||
348 | { | ||
349 | platform_driver_unregister(&jz4740_adc_driver); | ||
350 | } | ||
351 | module_exit(jz4740_adc_exit); | ||
352 | 342 | ||
353 | MODULE_DESCRIPTION("JZ4740 SoC ADC driver"); | 343 | MODULE_DESCRIPTION("JZ4740 SoC ADC driver"); |
354 | MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>"); | 344 | MODULE_AUTHOR("Lars-Peter Clausen <lars@metafoo.de>"); |