forked from Minki/linux
regulator: aat2870: Don't explicitly initialise the first field
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>
This commit is contained in:
parent
49d8c59927
commit
e4c5288e41
@ -162,7 +162,7 @@ static struct aat2870_regulator *aat2870_get_regulator(int id)
|
|||||||
static int aat2870_regulator_probe(struct platform_device *pdev)
|
static int aat2870_regulator_probe(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
struct aat2870_regulator *ri;
|
struct aat2870_regulator *ri;
|
||||||
struct regulator_config config = { 0 };
|
struct regulator_config config = { };
|
||||||
struct regulator_dev *rdev;
|
struct regulator_dev *rdev;
|
||||||
|
|
||||||
ri = aat2870_get_regulator(pdev->id);
|
ri = aat2870_get_regulator(pdev->id);
|
||||||
|
Loading…
Reference in New Issue
Block a user