Skip to content
Commit aab0b4fe authored by Samuel Holland's avatar Samuel Holland Committed by Wolfram Sang
Browse files

i2c: mv64xxx: Fix check for missing clock after adding RPM

In commit e5c02cf5 ("i2c: mv64xxx: Add runtime PM support"), error
pointers to optional clocks were replaced by NULL to simplify the resume
callback implementation. However, that commit missed that the IS_ERR
check in mv64xxx_of_config should be replaced with a NULL check. As a
result, the check always passes, even for an invalid device tree.

Fixes: e5c02cf5

 ("i2c: mv64xxx: Add runtime PM support")
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarSamuel Holland <samuel@sholland.org>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent a39bd92e
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