Set full constraints during machine initialisation, so that the regulator_get() can get the dummy regulator if the regulator is physically present and enabled. Discussed this in the link: https://lkml.org/lkml/2013/10/8/40 Signed-off-by: Wei Ni <wni@xxxxxxxxxx> --- arch/arm/mach-tegra/tegra.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-tegra/tegra.c b/arch/arm/mach-tegra/tegra.c index ce553d5..5c69a75 100644 --- a/arch/arm/mach-tegra/tegra.c +++ b/arch/arm/mach-tegra/tegra.c @@ -34,6 +34,7 @@ #include <linux/usb/tegra_usb_phy.h> #include <linux/clk/tegra.h> #include <linux/irqchip.h> +#include <linux/regulator/machine.h> #include <asm/hardware/cache-l2x0.h> #include <asm/mach-types.h> @@ -135,6 +136,8 @@ static void __init tegra_dt_init(void) parent = soc_device_to_device(soc_dev); + regulator_has_full_constraints(); + /* * Finished with the static registrations now; fill in the missing * devices -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html