summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2017-04-25 10:55:24 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-04-26 08:45:00 +0200
commit15ad40fa3cc8d4da1793a16bcade793b2ff110c7 (patch)
treefad563b4e32d92c3374fffb02a9793ca0ae43aee
parentd70eff0e3ff285216ae4c7c32407eecd5dedb8b8 (diff)
downloadbarebox-15ad40fa3cc8d4da1793a16bcade793b2ff110c7.tar.gz
HAB: don't reference unused HAB ops
Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/hab/hab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hab/hab.c b/drivers/hab/hab.c
index 512ff7e..0d71f5b 100644
--- a/drivers/hab/hab.c
+++ b/drivers/hab/hab.c
@@ -209,9 +209,9 @@ static struct imx_hab_ops *imx_get_hab_ops(void)
if (ops)
return ops;
- if (cpu_is_mx25() || cpu_is_mx35())
+ if (IS_ENABLED(CONFIG_HABV3) && (cpu_is_mx25() || cpu_is_mx35()))
tmp = &imx_hab_ops_iim;
- else if (cpu_is_mx6())
+ else if (IS_ENABLED(CONFIG_HABV4) && cpu_is_mx6())
tmp = &imx_hab_ops_ocotp;
else
return NULL;