From 1763310f3320021d53379a56622ccaadd0a93eaa Mon Sep 17 00:00:00 2001 From: "Huang, Tao" Date: Fri, 16 Jun 2017 19:39:04 +0800 Subject: [PATCH] soc: rockchip: Add dummy rockchip_pm_register_notify_to_dmc build fix for CONFIG_ROCKCHIP_PM_DOMAINS=n Change-Id: Iffa0bfa3ab7fc78360341f188f645d2579edde2e Signed-off-by: Huang, Tao --- include/soc/rockchip/rockchip_dmc.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/soc/rockchip/rockchip_dmc.h b/include/soc/rockchip/rockchip_dmc.h index ef5fb47efab9..36ab2a544d5b 100644 --- a/include/soc/rockchip/rockchip_dmc.h +++ b/include/soc/rockchip/rockchip_dmc.h @@ -15,7 +15,14 @@ #include +#ifdef ROCKCHIP_PM_DOMAINS int rockchip_pm_register_notify_to_dmc(struct devfreq *devfreq); +#else +static inline int rockchip_pm_register_notify_to_dmc(struct devfreq *devfreq) +{ + return 0; +} +#endif #ifdef CONFIG_DRM int rockchip_drm_register_notifier_to_dmc(struct devfreq *devfreq); -- 2.34.1