From 15ad40fa3cc8d4da1793a16bcade793b2ff110c7 Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Tue, 25 Apr 2017 10:55:24 +0200 Subject: HAB: don't reference unused HAB ops Signed-off-by: Lucas Stach Signed-off-by: Sascha Hauer --- 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 512ff7ecf2..0d71f5bf26 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; -- cgit v1.2.3