提交 08ecab0c 编写于 作者: I Ian Ray 提交者: Stefano Babic

board: ge: bx50v3: Fix run-time warning

Fix GPIO reservation warning on code paths that do not need LVDS power.
Signed-off-by: NIan Ray <ian.ray@ge.com>
Signed-off-by: NRobert Beckett <bob.beckett@collabora.com>
上级 05de2008
...@@ -714,8 +714,10 @@ int ft_board_setup(void *blob, bd_t *bd) ...@@ -714,8 +714,10 @@ int ft_board_setup(void *blob, bd_t *bd)
static int do_backlight_enable(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) static int do_backlight_enable(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{ {
#ifdef CONFIG_VIDEO_IPUV3 #ifdef CONFIG_VIDEO_IPUV3
if (!is_b850v3()) {
/* We need at least 200ms between power on and backlight on /* We need at least 200ms between power on and backlight on
* as per specifications from CHI MEI */ * as per specifications from CHI MEI
*/
mdelay(250); mdelay(250);
/* enable backlight PWM 1 */ /* enable backlight PWM 1 */
...@@ -728,6 +730,7 @@ static int do_backlight_enable(cmd_tbl_t *cmdtp, int flag, int argc, char * cons ...@@ -728,6 +730,7 @@ static int do_backlight_enable(cmd_tbl_t *cmdtp, int flag, int argc, char * cons
gpio_direction_output(LVDS_BACKLIGHT_GP, 1); gpio_direction_output(LVDS_BACKLIGHT_GP, 1);
pwm_enable(0); pwm_enable(0);
}
#endif #endif
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册