]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
regulator: smd: Add correct ifdef flag for stubs
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Wed, 22 Jul 2015 14:30:02 +0000 (15:30 +0100)
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 11 Jan 2016 09:55:12 +0000 (09:55 +0000)
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 <srinivas.kandagatla@linaro.org>
include/linux/regulator/qcom_smd-regulator.h

index a71b6adc64ba88ac7c320f1b90d1398917a16479..16029448d6b6225ccc1e8f9cc454dbadb2473f08 100644 (file)
@@ -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