[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1469077585-23237-1-git-send-email-yamada.masahiro@socionext.com>
Date: Thu, 21 Jul 2016 14:06:25 +0900
From: Masahiro Yamada <yamada.masahiro@...ionext.com>
To: linux-kernel@...r.kernel.org
Cc: Hans de Goede <hdegoede@...hat.com>,
Philipp Zabel <p.zabel@...gutronix.de>,
Lee Jones <lee.jones@...aro.org>,
Masahiro Yamada <yamada.masahiro@...ionext.com>
Subject: [PATCH] reset: return -ENOTSUPP if CONFIG_RESET_CONTROLLER is undefined
This has been inconsistent; some returns -EINVAL, some -ENOTSUPP.
Make it consistent in this header, in favor of -ENOTSUPP.
Signed-off-by: Masahiro Yamada <yamada.masahiro@...ionext.com>
---
include/linux/reset.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/linux/reset.h b/include/linux/reset.h
index 5894f0f..c875b4b 100644
--- a/include/linux/reset.h
+++ b/include/linux/reset.h
@@ -71,14 +71,14 @@ static inline struct reset_control *__of_reset_control_get(
struct device_node *node,
const char *id, int index, int shared)
{
- return ERR_PTR(-EINVAL);
+ return ERR_PTR(-ENOTSUPP);
}
static inline struct reset_control *__devm_reset_control_get(
struct device *dev,
const char *id, int index, int shared)
{
- return ERR_PTR(-EINVAL);
+ return ERR_PTR(-ENOTSUPP);
}
#endif /* CONFIG_RESET_CONTROLLER */
--
1.9.1
Powered by blists - more mailing lists