regulator: act8865: Remove "static" from local variable
authorMaarten ter Huurne <maarten@treewalker.org>
Sun, 28 Feb 2016 15:53:25 +0000 (16:53 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 29 Feb 2016 11:33:44 +0000 (20:33 +0900)
There is no need to preserve its value between calls. I guess this
was a copy-paste slip-up.

Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/act8865-regulator.c

index f8d4cd3d139738ca6e46b109bb6f810aeccec146..984c30fa951610b3e5bc4b36318008cebdb930ef 100644 (file)
@@ -415,7 +415,7 @@ static void act8865_power_off(void)
 static int act8865_pmic_probe(struct i2c_client *client,
                              const struct i2c_device_id *i2c_id)
 {
-       static const struct regulator_desc *regulators;
+       const struct regulator_desc *regulators;
        struct act8865_platform_data pdata_of, *pdata;
        struct device *dev = &client->dev;
        struct device_node **of_node;