Re: [PATCH] usb: bdc: Fix return value of bdc_probe()

From: Sergei Shtylyov
Date: Fri May 22 2020 - 05:10:52 EST


Hello!

On 22.05.2020 11:17, Tiezhu Yang wrote:

When call function devm_platform_ioremap_resource(), we should use IS_ERR()
to check the return value

Already done.

and return PTR_ERR() if failed.

Yes, else the deferred probing doesn't work.

Fixes: 893a66d34298 ("usb: bdc: use devm_platform_ioremap_resource() to simplify code")
Signed-off-by: Tiezhu Yang <yangtiezhu@xxxxxxxxxxx>
[...]

MBR, Sergei