ARM: tegra: laguna: Fix fixed regulator init
Pradeep Goudagunta [Thu, 27 Jun 2013 04:55:41 +0000 (09:55 +0530)]
Bug 1306376

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

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

index 7464907..d876329 100644 (file)
@@ -686,9 +686,11 @@ static int __init laguna_fixed_regulator_init(void)
        else if (board_info.board_id == BOARD_PM359)
                return platform_add_devices(fixed_reg_devs_pm359,
                                ARRAY_SIZE(fixed_reg_devs_pm359));
-       else
+       else if (board_info.board_id == BOARD_PM363)
                return platform_add_devices(fixed_reg_devs_pm363,
                                ARRAY_SIZE(fixed_reg_devs_pm363));
+
+       return 0;
 }
 
 subsys_initcall_sync(laguna_fixed_regulator_init);