Skip to content
Unverified Commit 3582cf94 authored by Walker Chen's avatar Walker Chen Committed by Mark Brown
Browse files

ASoC: starfive: Fix an error check in jh7110_tdm_clk_reset_get()



Fix the check for devm_reset_control_array_get_exclusive() return value.
The devm_reset_control_array_get_exclusive() function may return NULL if
it's an optional request. If optional is intended then NULL should not
be treated as an error case, but as a special kind of success case. So
here the IS_ERR() is used to check better.

Signed-off-by: default avatarWalker Chen <walker.chen@starfivetech.com>
Reviewed-by: default avatarClaudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20230608135750.11041-2-walker.chen@starfivetech.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 08e6c4bb
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