Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: bb47523 ("reset: make optional functions really optional") Reported-by: Andrzej Hajda <[email protected]> Tested-by: Andrzej Hajda <[email protected]> Reviewed-by: Andrzej Hajda <[email protected]> Cc: Ramiro Oliveira <[email protected]> Signed-off-by: Philipp Zabel <[email protected]>
- Loading branch information