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

Commit 4a2a7343 authored by Philippe Rétornaz's avatar Philippe Rétornaz Committed by Samuel Ortiz
Browse files

mfd: Unconditionally register mc13xxx regulator subdevice

parent a980bf73
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -750,10 +750,8 @@ static int mc13xxx_probe(struct spi_device *spi)
	if (pdata->flags & MC13XXX_USE_CODEC)
		mc13xxx_add_subdevice(mc13xxx, "%s-codec");

	if (pdata->flags & MC13XXX_USE_REGULATOR) {
	mc13xxx_add_subdevice_pdata(mc13xxx, "%s-regulator",
		&pdata->regulators, sizeof(pdata->regulators));
	}

	if (pdata->flags & MC13XXX_USE_RTC)
		mc13xxx_add_subdevice(mc13xxx, "%s-rtc");