]> git.itanic.dy.fi Git - linux-stable/commit
reset: make optional functions really optional
authorRamiro Oliveira <Ramiro.Oliveira@synopsys.com>
Fri, 13 Jan 2017 17:57:41 +0000 (17:57 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Dec 2018 12:05:08 +0000 (13:05 +0100)
commitca58e3b2fc54bec2b740f391a713c92e0cbf9a76
treed4ffab9808d0122f27956e7bfb2dec6094b3808f
parent47fb2ff8acf2654ec20c67076617384812ec9ca4
reset: make optional functions really optional

commit bb475230b8e59a547ab66ac3b02572df21a580e9 upstream.

The *_get_optional_* functions weren't really optional so this patch
makes them really optional.

These *_get_optional_* functions will now return NULL instead of an error
if no matching reset phandle is found in the DT, and all the
reset_control_* functions now accept NULL rstc pointers.

Signed-off-by: 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>
drivers/reset/core.c
include/linux/reset.h