Skip to content
Verified Commit 4c6ac544 authored by Purushothama Siddaiah's avatar Purushothama Siddaiah Committed by Mark Brown
Browse files

spi: omap2-mcspi: Fix the IS_ERR() bug for devm_clk_get_optional_enabled()



The devm_clk_get_optional_enabled() function returns error
pointers(PTR_ERR()). So use IS_ERR() to check it.

Verified on K3-J7200 EVM board, without clock node mentioned
in the device tree.

Signed-off-by: default avatarPurushothama Siddaiah <psiddaiah@mvista.com>
Reviewed-by: default avatarCorey Minyard <cminyard@mvista.com>
Link: https://patch.msgid.link/20241205070426.1861048-1-psiddaiah@mvista.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent ceb259e4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment