diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-08-01 07:41:50 +0800 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2011-08-19 21:03:26 +0400 |
commit | 45d116ec2503c4255374e11c2c48f81cdf6d0f1d (patch) | |
tree | 3a2800ca261d2645c80f63dedad498ca4c21512d /drivers/power/max8998_charger.c | |
parent | cae659af87288a4b1723cdf94d713ef7fb4c56d9 (diff) |
max8998_charger: Allow full timeout not set, leave it unchanged
Add a missing break for case 0 of pdata->timeout, otherwise it will fall
through to the default case and return error.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'drivers/power/max8998_charger.c')
-rw-r--r-- | drivers/power/max8998_charger.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/max8998_charger.c b/drivers/power/max8998_charger.c index 8ac5fab5a3f..6f5ffc3e2f0 100644 --- a/drivers/power/max8998_charger.c +++ b/drivers/power/max8998_charger.c @@ -153,6 +153,7 @@ static __devinit int max8998_battery_probe(struct platform_device *pdev) case 0: dev_dbg(max8998->dev, "Full Timeout not set: leave it unchanged.\n"); + break; default: dev_err(max8998->dev, "Invalid Full Timeout value\n"); ret = -EINVAL; |