Skip to content
Commit 58c3a27e authored by Haibo Chen's avatar Haibo Chen Committed by Greg Kroah-Hartman
Browse files

iio: mma8452: fix probe fail when device tree compatible is used.

[ Upstream commit fe188949 ]

Correct the logic for the probe. First check of_match_table, if
not meet, then check i2c_driver.id_table. If both not meet, then
return fail.

Fixes: a47ac019

 ("iio: mma8452: Fix probe failing when an i2c_device_id is used")
Signed-off-by: default avatarHaibo Chen <haibo.chen@nxp.com>
Link: https://lore.kernel.org/r/1650876060-17577-1-git-send-email-haibo.chen@nxp.com
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 5ee016f6
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