]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit843d30489bcb6e66942cee285dc6a690088e1f8f
tree9fecc3af684950c395564fe3f5656ed1520589df
parent22285a4c4e27fa0d6e131b2dbcfd847dfa5fd3ed
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