regulator: aat2870: Don't explicitly initialise the first field
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 10 Sep 2012 04:07:23 +0000 (12:07 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 10 Sep 2012 07:34:36 +0000 (15:34 +0800)
Doing so generates a warning as the first field is a pointer but we use
0 to initalize it.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/aat2870-regulator.c

index 6f45bfd..167c93f 100644 (file)
@@ -162,7 +162,7 @@ static struct aat2870_regulator *aat2870_get_regulator(int id)
 static int aat2870_regulator_probe(struct platform_device *pdev)
 {
        struct aat2870_regulator *ri;
-       struct regulator_config config = { };
+       struct regulator_config config = { };
        struct regulator_dev *rdev;
 
        ri = aat2870_get_regulator(pdev->id);