reset: warn on invalid input to reset_control_reset/assert/deassert/status
authorPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 20 Jun 2016 11:05:14 +0000 (13:05 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 24 Aug 2016 13:21:36 +0000 (15:21 +0200)
commita3774e146a14a78e4dc84b28e841f3e91a29c6e4
treeea53600a171286c660dfac46959d1854c4a2e3df
parent54e991b56639437f922113b6b12f34e8044418d8
reset: warn on invalid input to reset_control_reset/assert/deassert/status

Instead of potentially crashing, dump a backtrace and return -EINVAL if
rstc is NULL or an error code.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/core.c