From 38a628d44f5465bad03187d85dbe3416f6866f7c Mon Sep 17 00:00:00 2001 From: Jordan Crouse Date: Wed, 11 Dec 2019 14:42:27 -0700 Subject: [PATCH] PM /devfreq: Fix function prototype Replace #ifdef with IS_ENABLED to make sure that the memlat prototypes are available for a module build. Fixes: a4e0d26 ("PM / devfreq: Introduce a memory-latency governor") Change-Id: Ic0dedbade40e23bb148bbb9117c4a9b63e419111 Signed-off-by: Jordan Crouse --- drivers/devfreq/governor_memlat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/devfreq/governor_memlat.h b/drivers/devfreq/governor_memlat.h index 7fe65f4caf8c..a7e79b241290 100644 --- a/drivers/devfreq/governor_memlat.h +++ b/drivers/devfreq/governor_memlat.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ /* - * Copyright (c) 2015-2017, 2019, The Linux Foundation. All rights reserved. + * Copyright (c) 2015-2017, 2019-2020, The Linux Foundation. All rights reserved. */ #ifndef _GOVERNOR_MEMLAT_H @@ -68,7 +68,7 @@ struct memlat_hwmon { bool should_ignore_df_monitor; }; -#ifdef CONFIG_DEVFREQ_GOV_MEMLAT +#if IS_ENABLED(CONFIG_DEVFREQ_GOV_MEMLAT) int register_memlat(struct device *dev, struct memlat_hwmon *hw); int register_compute(struct device *dev, struct memlat_hwmon *hw); int update_memlat(struct memlat_hwmon *hw);