From: Oleksandr Dmytryshyn Subject: [RFC PATCH v2 1/8] PM / OPP: make cpufreq functions dependent on CONFIG_CPU_FREQ_TABLE Date: Thu, 16 Oct 2014 14:28:30 +0300 Message-ID: <1413458917-7348-2-git-send-email-oleksandr.dmytryshyn@globallogic.com> References: <1413458917-7348-1-git-send-email-oleksandr.dmytryshyn@globallogic.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1413458917-7348-1-git-send-email-oleksandr.dmytryshyn@globallogic.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: "Rafael J. Wysocki" , Tim Deegan , Stefano Stabellini , Ian Campbell List-Id: xen-devel@lists.xenproject.org Those functions should be dependent on CONFIG_CPU_FREQ_TABLE instead of the CONFIG_CPU_FREQ. Signed-off-by: Oleksandr Dmytryshyn --- drivers/base/power/opp.c | 4 ++-- include/linux/opp.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/base/power/opp.c b/drivers/base/power/opp.c index 32ee0fc..17c5bc5 100644 --- a/drivers/base/power/opp.c +++ b/drivers/base/power/opp.c @@ -592,7 +592,7 @@ int opp_disable(struct device *dev, unsigned long freq) } EXPORT_SYMBOL_GPL(opp_disable); -#ifdef CONFIG_CPU_FREQ +#ifdef CONFIG_CPU_FREQ_TABLE /** * opp_init_cpufreq_table() - create a cpufreq table for a device * @dev: device for which we do this operation @@ -680,7 +680,7 @@ void opp_free_cpufreq_table(struct device *dev, *table = NULL; } EXPORT_SYMBOL_GPL(opp_free_cpufreq_table); -#endif /* CONFIG_CPU_FREQ */ +#endif /* CONFIG_CPU_FREQ_TABLE */ /** * opp_get_notifier() - find notifier_head of the device with opp diff --git a/include/linux/opp.h b/include/linux/opp.h index 214e0eb..35c98f3 100644 --- a/include/linux/opp.h +++ b/include/linux/opp.h @@ -112,7 +112,7 @@ static inline struct srcu_notifier_head *opp_get_notifier(struct device *dev) } #endif /* CONFIG_PM_OPP */ -#if defined(CONFIG_CPU_FREQ) && defined(CONFIG_PM_OPP) +#if defined(CONFIG_CPU_FREQ_TABLE) && defined(CONFIG_PM_OPP) int opp_init_cpufreq_table(struct device *dev, struct cpufreq_frequency_table **table); void opp_free_cpufreq_table(struct device *dev, -- 1.9.1