[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1399995245-15095-1-git-send-email-balbi@ti.com>
Date: Tue, 13 May 2014 10:34:05 -0500
From: Felipe Balbi <balbi@...com>
To: <p.zabel@...gutronix.de>, <maxime.ripard@...e-electrons.com>,
<marex@...x.de>, <wsa@...-dreams.de>
CC: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Alan Stern <stern@...land.harvard.edu>,
Felipe Balbi <balbi@...com>
Subject: [PATCH] reset: stub out devm_reset_control_get()
without that stub, drivers will fail to build
when CONFIG_RESET_CONTROLLER=n.
Signed-off-by: Felipe Balbi <balbi@...com>
---
include/linux/reset.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/linux/reset.h b/include/linux/reset.h
index c0eda50..aa94420 100644
--- a/include/linux/reset.h
+++ b/include/linux/reset.h
@@ -75,6 +75,12 @@ static inline struct reset_control *devm_reset_control_get_optional(
return ERR_PTR(-ENOSYS);
}
+static inline struct reset_control *devm_reset_control_get(
+ struct device *dev, const char *id)
+{
+ return ERR_PTR(-ENOSYS);
+}
+
#endif /* CONFIG_RESET_CONTROLLER */
#endif
--
2.0.0.rc1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists