[PATCH] reset: Provide !RESET_CONTROLLER stub for devm_reset_control_get()

From: Mark Brown
Date: Fri Aug 01 2014 - 13:22:29 EST


From: Mark Brown <broonie@xxxxxxxxxx>

At least the sun6i DMA controller driver makes use of the reset controller
API stubs when being built for coverage and otherwise fails to build.

Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
---
include/linux/reset.h | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/include/linux/reset.h b/include/linux/reset.h
index 349f150..28f119f 100644
--- a/include/linux/reset.h
+++ b/include/linux/reset.h
@@ -67,6 +67,13 @@ static inline int device_reset_optional(struct device *dev)
return -ENOSYS;
}

+static inline struct reset_control *devm_reset_control_get(struct device *dev,
+ const char *id)
+{
+ WARN_ON(1);
+ return ERR_PTR(-ENOSYS);
+}
+
static inline struct reset_control *reset_control_get_optional(
struct device *dev, const char *id)
{
--
2.0.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/