1 From b1b9fca8c317afc3f2b78bb54f877e8a830a819d Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Fri, 9 Aug 2013 18:47:27 +0200
4 Subject: [PATCH 34/36] reset: Fix compile when reset RESET_CONTROLLER is not
7 Drivers need to protect their reset api calls with #ifdef to avoid compile
10 This patch adds dummy wrappers in the same way that linux/of.h does it.
12 Cc: linux-kernel@vger.kernel.org
13 Cc: Philipp Zabel <p.zabel@pengutronix.de>
14 Cc: Gabor Juhos <juhosg@openwrt.org>
16 include/linux/reset-controller.h | 16 ++++++++++++++
17 include/linux/reset.h | 43 ++++++++++++++++++++++++++++++++++++++
18 2 files changed, 59 insertions(+)
20 --- a/include/linux/reset-controller.h
21 +++ b/include/linux/reset-controller.h
22 @@ -46,7 +46,23 @@ struct reset_controller_dev {
23 unsigned int nr_resets;
26 +#if defined(CONFIG_RESET_CONTROLLER)
28 int reset_controller_register(struct reset_controller_dev *rcdev);
29 void reset_controller_unregister(struct reset_controller_dev *rcdev);
33 +static inline int reset_controller_register(struct reset_controller_dev *rcdev)
38 +void reset_controller_unregister(struct reset_controller_dev *rcdev)