Skip to content
Snippets Groups Projects
Commit 4b148d51 authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Greg Kroah-Hartman
Browse files

usb: host: xhci-plat: propagate return value of platform_get_irq()


platform_get_irq() returns an error code, but the xhci-plat driver
ignores it and always returns -ENODEV. This is not correct, and
prevents -EPROBE_DEFER from being propagated properly.

CC: <stable@vger.kernel.org>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: default avatarMathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 604d02a2
No related branches found
No related tags found
No related merge requests found
...@@ -177,7 +177,7 @@ static int xhci_plat_probe(struct platform_device *pdev) ...@@ -177,7 +177,7 @@ static int xhci_plat_probe(struct platform_device *pdev)
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq < 0) if (irq < 0)
return -ENODEV; return irq;
/* /*
* sysdev must point to a device that is known to the system firmware * sysdev must point to a device that is known to the system firmware
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment