mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
mfd: Unconditionally register mc13xxx regulator subdevice
Signed-off-by: Philippe Rétornaz <[email protected]> Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
a980bf73ba
commit
4a2a734306
1 changed files with 2 additions and 4 deletions
|
|
@ -750,10 +750,8 @@ err_revision:
|
|||
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));
|
||||
}
|
||||
mc13xxx_add_subdevice_pdata(mc13xxx, "%s-regulator",
|
||||
&pdata->regulators, sizeof(pdata->regulators));
|
||||
|
||||
if (pdata->flags & MC13XXX_USE_RTC)
|
||||
mc13xxx_add_subdevice(mc13xxx, "%s-rtc");
|
||||
|
|
|
|||
Loading…
Reference in a new issue