soc: rockchip: Add dummy rockchip_pm_register_notify_to_dmc
authorHuang, Tao <huangtao@rock-chips.com>
Fri, 16 Jun 2017 11:39:04 +0000 (19:39 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 19 Jun 2017 06:02:45 +0000 (14:02 +0800)
build fix for CONFIG_ROCKCHIP_PM_DOMAINS=n

Change-Id: Iffa0bfa3ab7fc78360341f188f645d2579edde2e
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
include/soc/rockchip/rockchip_dmc.h

index ef5fb47efab903bc04a1dd9b645cca274127d111..36ab2a544d5bc9b91c21cc3dddd40ff91d197a98 100644 (file)
 
 #include <linux/devfreq.h>
 
+#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);