[PATCH 2/4] HAB: don't reference unused HAB ops
Lucas Stach
l.stach at pengutronix.de
Tue Apr 25 01:55:24 PDT 2017
Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
---
drivers/hab/hab.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/hab/hab.c b/drivers/hab/hab.c
index 512ff7ecf2ac..0d71f5bf264c 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;
--
2.11.0
More information about the barebox
mailing list