diff options
Diffstat (limited to 'drivers/power/max8997_charger.c')
-rw-r--r-- | drivers/power/max8997_charger.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/max8997_charger.c b/drivers/power/max8997_charger.c index a23317d75c5a..6e88c5d026b9 100644 --- a/drivers/power/max8997_charger.c +++ b/drivers/power/max8997_charger.c | |||
@@ -19,7 +19,6 @@ | |||
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include <linux/module.h> | ||
23 | #include <linux/err.h> | 22 | #include <linux/err.h> |
24 | #include <linux/module.h> | 23 | #include <linux/module.h> |
25 | #include <linux/slab.h> | 24 | #include <linux/slab.h> |
@@ -98,7 +97,7 @@ static __devinit int max8997_battery_probe(struct platform_device *pdev) | |||
98 | return -EINVAL; | 97 | return -EINVAL; |
99 | 98 | ||
100 | if (pdata->eoc_mA) { | 99 | if (pdata->eoc_mA) { |
101 | u8 val = (pdata->eoc_mA - 50) / 10; | 100 | int val = (pdata->eoc_mA - 50) / 10; |
102 | if (val < 0) | 101 | if (val < 0) |
103 | val = 0; | 102 | val = 0; |
104 | if (val > 0xf) | 103 | if (val > 0xf) |
@@ -179,6 +178,7 @@ static int __devexit max8997_battery_remove(struct platform_device *pdev) | |||
179 | 178 | ||
180 | static const struct platform_device_id max8997_battery_id[] = { | 179 | static const struct platform_device_id max8997_battery_id[] = { |
181 | { "max8997-battery", 0 }, | 180 | { "max8997-battery", 0 }, |
181 | { } | ||
182 | }; | 182 | }; |
183 | 183 | ||
184 | static struct platform_driver max8997_battery_driver = { | 184 | static struct platform_driver max8997_battery_driver = { |