board: samsung: clean up exynos5422 board
authorChanho Park <chanho61.park@samsung.com>
Wed, 5 Aug 2015 05:18:58 +0000 (14:18 +0900)
committerChanho Park <chanho61.park@samsung.com>
Wed, 5 Aug 2015 05:18:58 +0000 (14:18 +0900)
If the definitions are not defined in the config file, build error will
be occurred. This patch corrects compile errors.

Change-Id: I5511c5f464a27d644b3ae12fdf7f5782bd19d785
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
board/samsung/smdk5422/smdk5422.c

index 19ec41de62e2c831aa741383eb46380c8ff790d7..ca9dbdd4e9f7e8323eb44943afa8061a56ca1293 100644 (file)
@@ -458,10 +458,12 @@ int board_late_init(void)
        }
 #endif
 
+#ifdef CONFIG_FACTORY_RESET_BOOTCOMMAND
        if ((readl(&pmu->sysip_dat0)) == CONFIG_FACTORY_RESET_MODE) {
                writel(0x0, &pmu->sysip_dat0);
                setenv("bootcmd", CONFIG_FACTORY_RESET_BOOTCOMMAND);
        }
+#endif
 
 #ifdef CONFIG_FASTBOOT_AUTO_REBOOT
        if (readl(&pmu->sysip_dat0) == CONFIG_FASTBOOT_AUTO_REBOOT_MODE) {