ARM: tegra: dalmore: Adding machine check
Pradeep Goudagunta [Fri, 24 Aug 2012 10:25:02 +0000 (15:25 +0530)]
Adding machine check for dalmore fixed regulator registration.

Bug 982726

Change-Id: Ic186d7c2bab832fa8630301b5a6bd75253d32b08
Signed-off-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Reviewed-on: http://git-master/r/127144
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

arch/arm/mach-tegra/board-dalmore-power.c

index 72719e0..150e4ae 100644 (file)
@@ -29,6 +29,8 @@
 #include <linux/regulator/max77663-regulator.h>
 #include <linux/regulator/tps51632-regulator.h>
 
+#include <asm/mach-types.h>
+
 #include <mach/iomap.h>
 #include <mach/irqs.h>
 #include <mach/gpio-tegra.h>
@@ -551,6 +553,9 @@ static int __init dalmore_fixed_regulator_init(void)
        fixed_reg_devs = fixed_reg_devs_a00;
        nfixreg_devs = ARRAY_SIZE(fixed_reg_devs_a00);
 
+       if (!machine_is_dalmore())
+               return 0;
+
        for (i = 0; i < nfixreg_devs; ++i) {
                int gpio_nr;
                struct fixed_voltage_config *fixed_reg_pdata =