]> www.infradead.org Git - users/hch/configfs.git/commit
i2c: muxes: Fix return value check in mule_i2c_mux_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Sat, 26 Oct 2024 03:09:42 +0000 (11:09 +0800)
committerAndi Shyti <andi.shyti@kernel.org>
Tue, 5 Nov 2024 14:17:34 +0000 (15:17 +0100)
commitab2e5c8ff253ff612f7c6ef9441d2ff6558e5449
treec5311fe99d9d40b2da0b9030ae4df4bd884a4157
parent59b723cd2adbac2a34fc8e12c74ae26ae45bf230
i2c: muxes: Fix return value check in mule_i2c_mux_probe()

If dev_get_regmap() fails, it returns NULL pointer not ERR_PTR(),
replace IS_ERR() with NULL pointer check, and return -ENODEV.

Fixes: d0f8e97866bf ("i2c: muxes: add support for tsd,mule-i2c multiplexer")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/muxes/i2c-mux-mule.c