summaryrefslogtreecommitdiff
path: root/include/linux/firmware/xlnx-zynqmp.h
diff options
context:
space:
mode:
authorTejas Patel <tejas.patel@xilinx.com>2020-01-09 22:06:03 +0300
committerMichal Simek <michal.simek@xilinx.com>2020-03-09 16:58:21 +0300
commitdceeb0f0e61071b1d990459dbd6a53f590cdaf77 (patch)
tree62cf00dbb18a60b8ae9d0c0e969565af3e10c0ba /include/linux/firmware/xlnx-zynqmp.h
parentbb6d3fb354c5ee8d6bde2d576eb7220ea09862b9 (diff)
downloadlinux-dceeb0f0e61071b1d990459dbd6a53f590cdaf77.tar.xz
include: linux: firmware: Correct config dependency of zynqmp_eemi_ops
zynqmp_eemi_ops will be compiled only when CONFIG_ZYNQMP_FIRMWARE is enabled. So check for CONFIG_ZYNQMP_FIRMWARE instead of checking for CONFIG_ARCH_ZYNQMP. Signed-off-by: Tejas Patel <tejas.patel@xilinx.com> Signed-off-by: Jolly Shah <jolly.shah@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'include/linux/firmware/xlnx-zynqmp.h')
-rw-r--r--include/linux/firmware/xlnx-zynqmp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/firmware/xlnx-zynqmp.h b/include/linux/firmware/xlnx-zynqmp.h
index 2cd12ebd6826..ed1aace0cbbc 100644
--- a/include/linux/firmware/xlnx-zynqmp.h
+++ b/include/linux/firmware/xlnx-zynqmp.h
@@ -320,7 +320,7 @@ struct zynqmp_eemi_ops {
int zynqmp_pm_invoke_fn(u32 pm_api_id, u32 arg0, u32 arg1,
u32 arg2, u32 arg3, u32 *ret_payload);
-#if IS_REACHABLE(CONFIG_ARCH_ZYNQMP)
+#if IS_REACHABLE(CONFIG_ZYNQMP_FIRMWARE)
const struct zynqmp_eemi_ops *zynqmp_pm_get_eemi_ops(void);
#else
static inline struct zynqmp_eemi_ops *zynqmp_pm_get_eemi_ops(void)