summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2018-08-07 16:21:16 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2018-08-08 09:32:52 +0200
commitcc13a6109ad79946e119917e7bbed16acc9b1e97 (patch)
tree953fb46f21d8a7c05c9c7505a3c521eed83bb2cd
parent383ba5137a2ea4c2c9d5230bd51384aec187166d (diff)
downloadbarebox-cc13a6109ad79946e119917e7bbed16acc9b1e97.tar.gz
barebox-cc13a6109ad79946e119917e7bbed16acc9b1e97.tar.xz
ARM: phytec-som-am335x: make autoenable actually usable
IS_ENABLED has to be passed the full symbol name including the CONFIG_ prefix. Otherwise IS_ENABLED evaluates to 0. Fixes: 2877e08f9e1a ("ARM: phytec-som-am335x: Add autoenable") Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> -- Cc: Daniel Schultz <d.schultz@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/boards/phytec-som-am335x/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/boards/phytec-som-am335x/board.c b/arch/arm/boards/phytec-som-am335x/board.c
index 0e9bf5fdef..8c24f2b332 100644
--- a/arch/arm/boards/phytec-som-am335x/board.c
+++ b/arch/arm/boards/phytec-som-am335x/board.c
@@ -135,7 +135,7 @@ static int physom_devices_init(void)
}
}
- if (IS_ENABLED(PHYTEC_SOM_AM335X_OF_AUTOENABLE)) {
+ if (IS_ENABLED(CONFIG_PHYTEC_SOM_AM335X_OF_AUTOENABLE)) {
/* Enable NAND */
of_autoenable_device_by_path("/ocp/gpmc@50000000");
/* Enable eMMC */