diff options
Diffstat (limited to 'drivers/power/jz4740-battery.c')
-rw-r--r-- | drivers/power/jz4740-battery.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/drivers/power/jz4740-battery.c b/drivers/power/jz4740-battery.c index 763f894ed188..8dbc7bfaab14 100644 --- a/drivers/power/jz4740-battery.c +++ b/drivers/power/jz4740-battery.c | |||
@@ -67,7 +67,7 @@ static irqreturn_t jz_battery_irq_handler(int irq, void *devid) | |||
67 | 67 | ||
68 | static long jz_battery_read_voltage(struct jz_battery *battery) | 68 | static long jz_battery_read_voltage(struct jz_battery *battery) |
69 | { | 69 | { |
70 | unsigned long t; | 70 | long t; |
71 | unsigned long val; | 71 | unsigned long val; |
72 | long voltage; | 72 | long voltage; |
73 | 73 | ||
@@ -441,17 +441,7 @@ static struct platform_driver jz_battery_driver = { | |||
441 | }, | 441 | }, |
442 | }; | 442 | }; |
443 | 443 | ||
444 | static int __init jz_battery_init(void) | 444 | module_platform_driver(jz_battery_driver); |
445 | { | ||
446 | return platform_driver_register(&jz_battery_driver); | ||
447 | } | ||
448 | module_init(jz_battery_init); | ||
449 | |||
450 | static void __exit jz_battery_exit(void) | ||
451 | { | ||
452 | platform_driver_unregister(&jz_battery_driver); | ||
453 | } | ||
454 | module_exit(jz_battery_exit); | ||
455 | 445 | ||
456 | MODULE_ALIAS("platform:jz4740-battery"); | 446 | MODULE_ALIAS("platform:jz4740-battery"); |
457 | MODULE_LICENSE("GPL"); | 447 | MODULE_LICENSE("GPL"); |