From: Srinivas Kandagatla Date: Wed, 22 Jul 2015 14:30:02 +0000 (+0100) Subject: regulator: smd: Add correct ifdef flag for stubs X-Git-Tag: KARO-TXSD-2017-03-24~88^2~32^2~23 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8a38c5694c0f6a8616f793ea2ae7e5ef22bef6c6;p=karo-tx-linux.git 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 --- 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