From 4f1d178da1985c2ca4541ae94096297020ef5ec6 Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Thu, 29 Sep 2022 10:02:27 +0800 Subject: [PATCH] soc: rockchip: rockchip_system_monitor: use IS_REACHABLE instead of IS_ENABLED Signed-off-by: Tao Huang Change-Id: I1726278ab44f17bb204d0c57758952f5f3896d76 --- include/soc/rockchip/rockchip-system-status.h | 2 +- include/soc/rockchip/rockchip_system_monitor.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/soc/rockchip/rockchip-system-status.h b/include/soc/rockchip/rockchip-system-status.h index 200b1ee89602..e04921240450 100644 --- a/include/soc/rockchip/rockchip-system-status.h +++ b/include/soc/rockchip/rockchip-system-status.h @@ -6,7 +6,7 @@ #ifndef __SOC_ROCKCHIP_SYSTEM_STATUS_H #define __SOC_ROCKCHIP_SYSTEM_STATUS_H -#if IS_ENABLED(CONFIG_ROCKCHIP_SYSTEM_MONITOR) +#if IS_REACHABLE(CONFIG_ROCKCHIP_SYSTEM_MONITOR) int rockchip_register_system_status_notifier(struct notifier_block *nb); int rockchip_unregister_system_status_notifier(struct notifier_block *nb); void rockchip_set_system_status(unsigned long status); diff --git a/include/soc/rockchip/rockchip_system_monitor.h b/include/soc/rockchip/rockchip_system_monitor.h index e6698c054c0d..8613838416ea 100644 --- a/include/soc/rockchip/rockchip_system_monitor.h +++ b/include/soc/rockchip/rockchip_system_monitor.h @@ -143,7 +143,7 @@ struct monitor_dev_profile { struct rockchip_opp_info *opp_info; }; -#if IS_ENABLED(CONFIG_ROCKCHIP_SYSTEM_MONITOR) +#if IS_REACHABLE(CONFIG_ROCKCHIP_SYSTEM_MONITOR) struct monitor_dev_info * rockchip_system_monitor_register(struct device *dev, struct monitor_dev_profile *devp);