Re: [PATCH] i2c: Fix return value of bcm_kona_i2c_probe()

From: Florian Fainelli
Date: Sun Aug 22 2021 - 05:07:34 EST




On 8/16/2021 10:37 AM, zhaoxiao wrote:
When call function devm_platform_ioremap_resource(), we should use IS_ERR()
to check the return value and return PTR_ERR() if failed.

Signed-off-by: zhaoxiao <zhaoxiao@xxxxxxxxxxxxx>

Acked-by: Florian Fainelli <f.fainelli@xxxxxxxxx>
--
Florian