Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c0cf5a59 authored by Markus Pargmann's avatar Markus Pargmann Committed by Mark Brown
Browse files

regulator: max8660: Handle empty regulator data



It is not necessary to have regulator init data for a regulator. This
patch removes the necessity of this data and handles a NULL pointer
properly.

Signed-off-by: default avatarMarkus Pargmann <mpa@pengutronix.de>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent dfb85ba1
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -442,8 +442,8 @@ static int max8660_probe(struct i2c_client *client,
	for (i = 0; i < pdata->num_subdevs; i++) {

		if (!pdata->subdevs[i].platform_data)
			return ret;

			boot_on = false;
		else
			boot_on = pdata->subdevs[i].platform_data->constraints.boot_on;

		switch (pdata->subdevs[i].id) {