usb: mtu3: fix error return code in ssusb_gadget_init()
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Fri, 13 Oct 2017 09:10:37 +0000 (17:10 +0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 19 Oct 2017 07:38:10 +0000 (10:38 +0300)
commitc162ff0aaaac456ef29aebd1e9d4d3e305cd3279
tree570bdd3edb305ce2fbdac4bd00c25f045ad3ad44
parent86763723eee87bfe561cdabae2dd1c2e97933bd8
usb: mtu3: fix error return code in ssusb_gadget_init()

When failing to get IRQ number, platform_get_irq() may return
-EPROBE_DEFER, but we ignore it and always return -ENODEV,
so fix it.

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/mtu3/mtu3_core.c