]> git.karo-electronics.de Git - linux-beck.git/commitdiff
max8998_charger: Allow full timeout not set, leave it unchanged
authorAxel Lin <axel.lin@gmail.com>
Sun, 31 Jul 2011 23:41:50 +0000 (07:41 +0800)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Fri, 19 Aug 2011 17:03:26 +0000 (21:03 +0400)
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>
drivers/power/max8998_charger.c

index 8ac5fab5a3f45da4e1ab4c469f8bbc15412f3f3c..6f5ffc3e2f03676828b0ce79ab9002e79e35da27 100644 (file)
@@ -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;