diff options
author | Dan Willemsen <dwillemsen@nvidia.com> | 2011-05-18 10:01:22 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:46:42 -0800 |
commit | bced844ea3cd36d6d45af69c8c4b18436c656af4 (patch) | |
tree | 28b2c016252dc5696e604227b13c1edbfc8203a4 /arch/arm/mach-tegra/board-ventana-panel.c | |
parent | 03da99f48da10bd8b8704cffcb3e037808af2e36 (diff) |
Fix kernel panic
Rebase-Id: R752f37acc613a810b659f9ccc48b8f2abb340bb2
Diffstat (limited to 'arch/arm/mach-tegra/board-ventana-panel.c')
-rw-r--r-- | arch/arm/mach-tegra/board-ventana-panel.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/board-ventana-panel.c b/arch/arm/mach-tegra/board-ventana-panel.c index 75bae2a4ce42..95263394cb60 100644 --- a/arch/arm/mach-tegra/board-ventana-panel.c +++ b/arch/arm/mach-tegra/board-ventana-panel.c @@ -100,8 +100,10 @@ static int ventana_panel_enable(void) { struct regulator *reg = regulator_get(NULL, "vdd_ldo4"); - regulator_enable(reg); - regulator_put(reg); + if (!reg) { + regulator_enable(reg); + regulator_put(reg); + } gpio_set_value(ventana_pnl_pwr_enb, 1); gpio_set_value(ventana_lvds_shutdown, 1); |