Skip to content
Commit b424080a authored by Philipp Zabel's avatar Philipp Zabel Committed by Philipp Zabel
Browse files

reset: Add optional resets and stubs



This patch adds device_reset_optional and (devm_)reset_control_get_optional
variants that drivers can use to indicate they can function without control
over the reset line. For those functions, stubs are added so the drivers can
be compiled with CONFIG_RESET_CONTROLLER disabled.
Also, device_reset is annotated with __must_check. Drivers ignoring the return
value should use device_reset_optional instead.

Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: default avatarMarek Vasut <marex@denx.de>
Acked-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent fc0a5921
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment