OSDN Git Service

i2c: synquacer: Use dev_err_probe in probe function
authorLiao Chang <liaochang1@huawei.com>
Tue, 8 Aug 2023 01:29:54 +0000 (09:29 +0800)
committerAndi Shyti <andi.shyti@kernel.org>
Thu, 10 Aug 2023 08:13:57 +0000 (10:13 +0200)
commit7a34bab2daeaae6d2f32bdfa20b876a8f210cd7a
tree02dcead49a7d5178e6d178c8d2695f239eaf80da
parent5d51af11f41eb348d9c3ccb5c74ffa9078673166
i2c: synquacer: Use dev_err_probe in probe function

Use the dev_err_probe function instead of dev_err in the probe function
so that the printed message includes the return value and also handles
-EPROBE_DEFER nicely.

Signed-off-by: Liao Chang <liaochang1@huawei.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20230808012954.1643834-10-liaochang1@huawei.com
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-synquacer.c