]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
reset: Add missing function stub for device_reset
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 1 Apr 2016 19:38:16 +0000 (21:38 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 4 Apr 2016 16:15:23 +0000 (18:15 +0200)
The Mediatek's thermal driver fails to compile when the RESET_CONTROLLER
option is not set. Logically, as the driver depends on this option to compile,
the Kconfig should select it but actually that is not correct because the
Kconfig provides also the COMPILE_TEST to increase the compile test coverage.

By providing the missing 'device_reset' stub for the driver in reset.h, that
let the kernel to compile on different platforms with the Mediatek thermal
driver enabled with the COMPILE_TEST option.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
include/linux/reset.h

index a552134a209e5ab2ac7c17b6ee378b06caffac48..ec0306ce7b92ab6f0e4bb420347ca9301b1355e3 100644 (file)
@@ -56,6 +56,12 @@ static inline void reset_control_put(struct reset_control *rstc)
        WARN_ON(1);
 }
 
+static inline int __must_check device_reset(struct device *dev)
+{
+       WARN_ON(1);
+       return -ENOTSUPP;
+}
+
 static inline int device_reset_optional(struct device *dev)
 {
        return -ENOTSUPP;