From 8a38c5694c0f6a8616f793ea2ae7e5ef22bef6c6 Mon Sep 17 00:00:00 2001 From: Srinivas Kandagatla Date: Wed, 22 Jul 2015 15:30:02 +0100 Subject: [PATCH] regulator: smd: Add correct ifdef flag for stubs If built as module would throw up with drivers/regulator/qcom_smd-regulator.c:67:5: error: redefinition of 'qcom_rpm_set_floor' drivers/regulator/qcom_smd-regulator.c:89:5: error: redefinition of 'qcom_rpm_set_corner' Signed-off-by: Srinivas Kandagatla --- include/linux/regulator/qcom_smd-regulator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/regulator/qcom_smd-regulator.h b/include/linux/regulator/qcom_smd-regulator.h index a71b6adc64ba..16029448d6b6 100644 --- a/include/linux/regulator/qcom_smd-regulator.h +++ b/include/linux/regulator/qcom_smd-regulator.h @@ -12,7 +12,7 @@ #ifndef __QCOM_SMD_REGULATOR_H_ #define __QCOM_SMD_REGULATOR_H_ -#ifdef CONFIG_REGULATOR_QCOM_SMD_RPM +#if IS_ENABLED(CONFIG_REGULATOR_QCOM_SMD_RPM) int qcom_rpm_set_floor(struct regulator *regulator, int floor); int qcom_rpm_set_corner(struct regulator *regulator, int corner); #else -- 2.39.5