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

2020-05-22 Thread Sergei Shtylyov
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

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

2020-05-22 Thread Tiezhu Yang
When call function devm_platform_ioremap_resource(), we should use IS_ERR() to check the return value and return PTR_ERR() if failed. Fixes: 893a66d34298 ("usb: bdc: use devm_platform_ioremap_resource() to simplify code") Signed-off-by: Tiezhu Yang --- drivers/usb/gadget/udc/bdc/bdc_core.c | 2