]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: fsl: Fix a wrong judgment in fsl_udc_probe()
authorTang Bin <tangbin@cmss.chinamobile.com>
Fri, 10 Apr 2020 01:58:32 +0000 (09:58 +0800)
committerFelipe Balbi <balbi@kernel.org>
Mon, 25 May 2020 08:09:43 +0000 (11:09 +0300)
commit0ba721404c86233dbc62a0a1ade2b2316b2d0b18
treea2201349428bafd813b9ff029bedae6807815f93
parent57b1c9093c30c8b69cfa377206ce9a8f94eaaf97
usb: gadget: fsl: Fix a wrong judgment in fsl_udc_probe()

If the function "platform_get_irq()" failed, the negative value
returned will not be detected here, including "-EPROBE_DEFER", which
causes the application to fail to get the correct error message.
Thus it must be fixed.

Acked-by: Li Yang <leoyang.li@nxp.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Signed-off-by: Shengju Zhang <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/gadget/udc/fsl_udc_core.c