From: Huang, Tao Date: Fri, 16 Jun 2017 11:39:04 +0000 (+0800) Subject: soc: rockchip: Add dummy rockchip_pm_register_notify_to_dmc X-Git-Tag: release-20171130_firefly~4^2~393 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1763310f3320021d53379a56622ccaadd0a93eaa;p=firefly-linux-kernel-4.4.55.git 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 --- 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);