reset: Allow dummy reset lines
Treat NULL as a dummy reset line which is returned by the reset core
when there is no reset line connected to a device (that is, no
reset is described in the device tree). With this consumers can
just use the reset functions without having to check for existence.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent b9170a1 commit 00c8cfb3e97a016871731e2c9a171e2f99061f91
@Sascha Hauer Sascha Hauer authored on 20 Nov 2015
Showing 1 changed file
View
drivers/reset/core.c