diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2016-04-01 21:38:16 +0200 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2016-04-04 18:15:23 +0200 |
commit | 4113652252fad972e0c191b1e536dc74a6faebdc (patch) | |
tree | d9b7e7182ac0570931e0eaa7eecd7a499fb71269 /include/linux/reset.h | |
parent | 6cf151fc53aeaa7757d3b9ab608bb7e51154de06 (diff) | |
download | linux-stable-4113652252fad972e0c191b1e536dc74a6faebdc.tar.gz linux-stable-4113652252fad972e0c191b1e536dc74a6faebdc.tar.bz2 linux-stable-4113652252fad972e0c191b1e536dc74a6faebdc.zip |
reset: Add missing function stub for device_reset
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>
Diffstat (limited to 'include/linux/reset.h')
-rw-r--r-- | include/linux/reset.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/reset.h b/include/linux/reset.h index a552134a209e..ec0306ce7b92 100644 --- a/include/linux/reset.h +++ b/include/linux/reset.h @@ -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; |