linux/drivers/usb/fotg210
Yang Yingliang 1a5a23b9bd usb: fotg210-udc: fix error return code in fotg210_udc_probe()
After commit  5f217ccd52 ("fotg210-udc: Support optional external PHY"),
the error code is re-assigned to 0 in fotg210_udc_probe(), if allocate or
map memory fails after the assignment, it can't return an error code. Set
the error code to -ENOMEM to fix this problem.

Fixes: 5f217ccd52 ("fotg210-udc: Support optional external PHY")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20221230065427.944586-1-yangyingliang@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-01-06 09:12:31 +01:00
..
fotg210-core.c usb: fotg210: fix OTG-only build 2022-12-28 11:23:53 +01:00
fotg210-hcd.c
fotg210-hcd.h
fotg210-udc.c usb: fotg210-udc: fix error return code in fotg210_udc_probe() 2023-01-06 09:12:31 +01:00
fotg210-udc.h fotg210-udc: Handle PCLK 2022-11-22 17:25:23 +01:00
fotg210.h
Kconfig usb: USB_FOTG210 should depend on ARCH_GEMINI 2022-11-22 17:25:06 +01:00
Makefile