]> git.sur5r.net Git - u-boot/commitdiff
tegra: Show a debug message if the LCD PMIC fails to start
authorSimon Glass <sjg@chromium.org>
Mon, 12 Jun 2017 12:21:59 +0000 (06:21 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 11 Jul 2017 16:08:20 +0000 (10:08 -0600)
This error condition should have a debug() message. Add it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Tested-on: Beaver, Jetson-TK1

arch/arm/mach-tegra/board2.c

index 99057201d4527cdec522cd5215adc04f10f6834b..6b5fa7df6245645bc4f43107a2fc29b504dad7d0 100644 (file)
@@ -156,8 +156,10 @@ int board_init(void)
 #if defined(CONFIG_DM_VIDEO)
        board_id = tegra_board_id();
        err = tegra_lcd_pmic_init(board_id);
-       if (err)
+       if (err) {
+               debug("Failed to set up LCD PMIC\n");
                return err;
+       }
 #endif
 
 #ifdef CONFIG_TEGRA_NAND