Skip to content

Commit

Permalink
regulator: aat2870: Don't explicitly initialise the first field
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown committed Sep 10, 2012
1 parent 49d8c59 commit e4c5288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/aat2870-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = { 0 };
struct regulator_config config = { };
struct regulator_dev *rdev;

ri = aat2870_get_regulator(pdev->id);
Expand Down

0 comments on commit e4c5288

Please sign in to comment.