]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
reset: fix optional reset_control_get stubs to return NULL
authorPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 20 Mar 2017 10:25:16 +0000 (11:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Dec 2018 12:05:08 +0000 (13:05 +0100)
commit7be26008ef1742ed0d26ca1a3ff69d58b793e511
tree6e8293bd4c14e1d34319590237bd5d413ba9a3d2
parentd4b89ecc29514792c3e37ec509fba9e283dbd5e7
reset: fix optional reset_control_get stubs to return NULL

commit 0ca10b60ceeb5372da01798ca68c116ae45a6eb6 upstream.

When RESET_CONTROLLER is not enabled, the optional reset_control_get
stubs should now also return NULL.

Since it is now valid for reset_control_assert/deassert/reset/status/put
to be called unconditionally, with NULL as an argument for optional
resets, the stubs are not allowed to warn anymore.

Fixes: bb475230b8e5 ("reset: make optional functions really optional")
Reported-by: Andrzej Hajda <a.hajda@samsung.com>
Tested-by: Andrzej Hajda <a.hajda@samsung.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Cc: Ramiro Oliveira <Ramiro.Oliveira@synopsys.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>
include/linux/reset.h