diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-10-29 01:50:07 +0900 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2017-11-27 09:16:39 +0100 |
commit | bb6c7768385b200063a14d6615cc1246c3d00760 (patch) | |
tree | a218853f6c83e7407f6dd6aba1111aeb0d692a05 /include/linux/reset.h | |
parent | 1554bbd4ad401b7f0f916c0891874111c10befe5 (diff) | |
download | lwn-bb6c7768385b200063a14d6615cc1246c3d00760.tar.gz lwn-bb6c7768385b200063a14d6615cc1246c3d00760.zip |
reset: remove remaining WARN_ON() in <linux/reset.h>
Commit bb475230b8e5 ("reset: make optional functions really optional")
gave a new meaning to _get_optional variants.
The differentiation by WARN_ON() is not needed any more. We already
have inconsistency about this; (devm_)reset_control_get_exclusive()
has WARN_ON() check, but of_reset_control_get_exclusive() does not.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
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, 0 insertions, 6 deletions
diff --git a/include/linux/reset.h b/include/linux/reset.h index b681019fc04c..ed6fb0290797 100644 --- a/include/linux/reset.h +++ b/include/linux/reset.h @@ -125,9 +125,6 @@ static inline int device_reset_optional(struct device *dev) static inline struct reset_control * __must_check reset_control_get_exclusive(struct device *dev, const char *id) { -#ifndef CONFIG_RESET_CONTROLLER - WARN_ON(1); -#endif return __reset_control_get(dev, id, 0, false, false); } @@ -273,9 +270,6 @@ static inline struct reset_control * __must_check devm_reset_control_get_exclusive(struct device *dev, const char *id) { -#ifndef CONFIG_RESET_CONTROLLER - WARN_ON(1); -#endif return __devm_reset_control_get(dev, id, 0, false, false); } |