diff options
| author | Yang Yingliang <[email protected]> | 2024-10-26 03:09:42 +0000 |
|---|---|---|
| committer | Andi Shyti <[email protected]> | 2024-11-05 14:17:34 +0000 |
| commit | ab2e5c8ff253ff612f7c6ef9441d2ff6558e5449 (patch) | |
| tree | c5311fe99d9d40b2da0b9030ae4df4bd884a4157 /rust/helpers/helpers.c | |
| parent | Linux 6.12-rc6 (diff) | |
| download | kernel-ab2e5c8ff253ff612f7c6ef9441d2ff6558e5449.tar.gz kernel-ab2e5c8ff253ff612f7c6ef9441d2ff6558e5449.zip | |
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 <[email protected]>
Signed-off-by: Andi Shyti <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
