]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mfd: Unconditionally register mc13xxx regulator subdevice
authorPhilippe Rétornaz <philippe.retornaz@epfl.ch>
Fri, 22 Jul 2011 14:17:07 +0000 (16:17 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 6 Oct 2011 14:44:00 +0000 (16:44 +0200)
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>
drivers/mfd/mc13xxx-core.c

index 5f782adffc1d09d0598c31cc761b6b6c118dd5a0..dd232ea73757829d6f5293da91caf15f084df688 100644 (file)
@@ -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");