reset: make optional functions really optional
authorRamiro Oliveira <Ramiro.Oliveira@synopsys.com>
Fri, 13 Jan 2017 17:57:41 +0000 (17:57 +0000)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 20 Jan 2017 09:36:15 +0000 (10:36 +0100)
commitbb475230b8e59a547ab66ac3b02572df21a580e9
tree9fecc3af684950c395564fe3f5656ed1520589df
parentee48c726d0b014ac8dd5ec803fb63ce0596a42cf
reset: make optional functions really optional

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