]> git.baikalelectronics.ru Git - kernel.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)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 21 Mar 2017 17:19:43 +0000 (18:19 +0100)
commit201694e7aa79acd3b131e7401ee315cc1154da24
treef287a4b83d49fffc1a7adcf50a941bf37907c776
parent94e2a518d0ac4a168bccd1446b1a1407458c45bd
reset: fix optional reset_control_get stubs to return NULL

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: 57b2f37eee5d ("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>
include/linux/reset.h