regulator: Remove unneeded semicolons
authorKrzysztof Kozlowski <k.kozlowski.k@gmail.com>
Thu, 23 Apr 2015 12:24:32 +0000 (21:24 +0900)
committerMark Brown <broonie@kernel.org>
Mon, 27 Apr 2015 20:35:20 +0000 (21:35 +0100)
Remove unneeded semicolons after the switch statement to satisfy
coccicheck.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/of_regulator.c
drivers/regulator/s2mps11.c

index 24e812c48d93076a36039e991c51bb371fb26d6e..e952439e0d83dcf20e857d5ded8c75e3da706770 100644 (file)
@@ -108,7 +108,7 @@ static void of_get_regulation_constraints(struct device_node *np,
                case PM_SUSPEND_STANDBY:
                default:
                        continue;
-               };
+               }
 
                suspend_np = of_get_child_by_name(np, regulator_states[i]);
                if (!suspend_np || !suspend_state)
index ff828117798fd3f4775cd5cc6c8e86d8fbe33a00..326ffb55337117d6dc2a96d7fce9cea773e18a14 100644 (file)
@@ -515,7 +515,7 @@ static int s2mps14_regulator_enable(struct regulator_dev *rdev)
                break;
        default:
                return -EINVAL;
-       };
+       }
 
        return regmap_update_bits(rdev->regmap, rdev->desc->enable_reg,
                        rdev->desc->enable_mask, val);
@@ -538,7 +538,7 @@ static int s2mps14_regulator_set_suspend_disable(struct regulator_dev *rdev)
                default:
                        state = S2MPS14_ENABLE_SUSPEND;
                        break;
-               };
+               }
                break;
        case S2MPU02:
                switch (rdev_id) {
@@ -552,11 +552,11 @@ static int s2mps14_regulator_set_suspend_disable(struct regulator_dev *rdev)
                default:
                        state = S2MPU02_ENABLE_SUSPEND;
                        break;
-               };
+               }
                break;
        default:
                return -EINVAL;
-       };
+       }
 
        ret = regmap_read(rdev->regmap, rdev->desc->enable_reg, &val);
        if (ret < 0)
@@ -977,7 +977,7 @@ static int s2mps11_pmic_probe(struct platform_device *pdev)
                dev_err(&pdev->dev, "Invalid device type: %u\n",
                                    s2mps11->dev_type);
                return -EINVAL;
-       };
+       }
 
        s2mps11->ext_control_gpio = devm_kmalloc(&pdev->dev,
                        sizeof(*s2mps11->ext_control_gpio) * s2mps11->rdev_num,