]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
reset: remove remaining WARN_ON() in <linux/reset.h>
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 28 Oct 2017 16:50:07 +0000 (01:50 +0900)
committerSultan Alsawaf <sultan.alsawaf@canonical.com>
Wed, 24 Jul 2019 15:45:02 +0000 (09:45 -0600)
commitb63018b756a60bf7520014c590018200ee14a8d0
treeb05895b4c7540a1eb6da2f5cbf2d2a6352ba6c2d
parent827363c50349b2384d26ebe21c51480cd8b06b80
reset: remove remaining WARN_ON() in <linux/reset.h>

BugLink: https://bugs.launchpad.net/bugs/1837161
commit bb6c7768385b200063a14d6615cc1246c3d00760 upstream.

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>
Cc: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
include/linux/reset.h