diff options
Diffstat (limited to 'drivers/power/max8998_charger.c')
-rw-r--r-- | drivers/power/max8998_charger.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/drivers/power/max8998_charger.c b/drivers/power/max8998_charger.c index 93e3bb47a3a8..9b3f2bf56e70 100644 --- a/drivers/power/max8998_charger.c +++ b/drivers/power/max8998_charger.c | |||
@@ -154,6 +154,7 @@ static __devinit int max8998_battery_probe(struct platform_device *pdev) | |||
154 | case 0: | 154 | case 0: |
155 | dev_dbg(max8998->dev, | 155 | dev_dbg(max8998->dev, |
156 | "Full Timeout not set: leave it unchanged.\n"); | 156 | "Full Timeout not set: leave it unchanged.\n"); |
157 | break; | ||
157 | default: | 158 | default: |
158 | dev_err(max8998->dev, "Invalid Full Timeout value\n"); | 159 | dev_err(max8998->dev, "Invalid Full Timeout value\n"); |
159 | ret = -EINVAL; | 160 | ret = -EINVAL; |
@@ -190,6 +191,7 @@ static int __devexit max8998_battery_remove(struct platform_device *pdev) | |||
190 | 191 | ||
191 | static const struct platform_device_id max8998_battery_id[] = { | 192 | static const struct platform_device_id max8998_battery_id[] = { |
192 | { "max8998-battery", TYPE_MAX8998 }, | 193 | { "max8998-battery", TYPE_MAX8998 }, |
194 | { } | ||
193 | }; | 195 | }; |
194 | 196 | ||
195 | static struct platform_driver max8998_battery_driver = { | 197 | static struct platform_driver max8998_battery_driver = { |
@@ -202,17 +204,7 @@ static struct platform_driver max8998_battery_driver = { | |||
202 | .id_table = max8998_battery_id, | 204 | .id_table = max8998_battery_id, |
203 | }; | 205 | }; |
204 | 206 | ||
205 | static int __init max8998_battery_init(void) | 207 | module_platform_driver(max8998_battery_driver); |
206 | { | ||
207 | return platform_driver_register(&max8998_battery_driver); | ||
208 | } | ||
209 | module_init(max8998_battery_init); | ||
210 | |||
211 | static void __exit max8998_battery_cleanup(void) | ||
212 | { | ||
213 | platform_driver_unregister(&max8998_battery_driver); | ||
214 | } | ||
215 | module_exit(max8998_battery_cleanup); | ||
216 | 208 | ||
217 | MODULE_DESCRIPTION("MAXIM 8998 battery control driver"); | 209 | MODULE_DESCRIPTION("MAXIM 8998 battery control driver"); |
218 | MODULE_AUTHOR("MyungJoo Ham <myungjoo.ham@samsung.com>"); | 210 | MODULE_AUTHOR("MyungJoo Ham <myungjoo.ham@samsung.com>"); |