From fc47cf9d054b79299274f4386cfb867a80af8c7b Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Wed, 23 Nov 2016 06:34:40 -0700 Subject: arm: exynos: i2c: Convert exynos boards to use DM_I2C Three boards are still not converting to use DM_I2C. They are also using the old PMIC framework. Rather than removing them, add #ifdefs to allow them to continue to build. This will give the maintainers a little more time to decide whether to convert them or not. Signed-off-by: Simon Glass Acked-by: Heiko Schocher --- board/samsung/common/misc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'board/samsung/common/misc.c') diff --git a/board/samsung/common/misc.c b/board/samsung/common/misc.c index 77d0a4e837..203136fb97 100644 --- a/board/samsung/common/misc.c +++ b/board/samsung/common/misc.c @@ -101,6 +101,7 @@ void set_board_info(void) #ifdef CONFIG_LCD_MENU static int power_key_pressed(u32 reg) { +#ifndef CONFIG_DM_I2C /* TODO(maintainer): Convert to driver model */ struct pmic *pmic; u32 status; u32 mask; @@ -123,6 +124,9 @@ static int power_key_pressed(u32 reg) return 0; return !!(status & mask); +#else + return 0; +#endif } static int key_pressed(int key) -- cgit v1.2.3