mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
When an optional reset is not present, __devm_reset_control_get() and devm_reset_control_array_get() still register resource data to release the non-existing reset on cleanup, which is futile. Fix this by skipping NULL reset control pointers. Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Philipp Zabel <[email protected]>