diff options
author | Philippe Rétornaz <philippe.retornaz@epfl.ch> | 2011-07-22 16:17:07 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-10-24 14:09:14 +0200 |
commit | 4a2a734306a6e3cc7766d2117ec142de9262f217 (patch) | |
tree | 78027ed7086df60a32b86eca9166b4f482b3fac1 /drivers | |
parent | a980bf73ba8ff76e6fab0644513c1127d852d0a8 (diff) | |
download | op-kernel-dev-4a2a734306a6e3cc7766d2117ec142de9262f217.zip op-kernel-dev-4a2a734306a6e3cc7766d2117ec142de9262f217.tar.gz |
mfd: Unconditionally register mc13xxx regulator subdevice
Signed-off-by: Philippe Rétornaz <philippe.retornaz@epfl.ch>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mfd/mc13xxx-core.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/mfd/mc13xxx-core.c b/drivers/mfd/mc13xxx-core.c index 5f782adf..dd232ea 100644 --- a/drivers/mfd/mc13xxx-core.c +++ b/drivers/mfd/mc13xxx-core.c @@ -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"); |