mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
usb: gadget: s3c2410_udc: fix error return code in s3c2410_udc_probe()
Fix to return a negative error code in the gpio_to_irq() error handling case instead of 0, as done elsewhere in this function. Reviewed-by: Jingoo Han <[email protected]> Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
This commit is contained in:
parent
b25e5f1c44
commit
48ad20f32d
1 changed files with 1 additions and 0 deletions
|
|
@ -1851,6 +1851,7 @@ static int s3c2410_udc_probe(struct platform_device *pdev)
|
|||
irq = gpio_to_irq(udc_info->vbus_pin);
|
||||
if (irq < 0) {
|
||||
dev_err(dev, "no irq for gpio vbus pin\n");
|
||||
retval = irq;
|
||||
goto err_gpio_claim;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue