diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-05-17 18:32:06 +0300 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2017-09-15 20:29:44 +0300 |
commit | 08860e175a39da5c04241ea765fb38b7d5c0caf5 (patch) | |
tree | e5dad0be05f9e2c71380dfebc5fa976597db0878 /drivers/usb/host | |
parent | 4b5f98a95da515bdb99e1eef68c794a02743c0a5 (diff) | |
download | linux-08860e175a39da5c04241ea765fb38b7d5c0caf5.tar.xz |
usb: host: xhci-plat: propagate return value of platform_get_irq()
commit 4b148d5144d64ee135b8924350cb0b3a7fd21150 upstream.
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.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/xhci-plat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index b1e4031d081a..f217c677a1ef 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -109,7 +109,7 @@ static int xhci_plat_probe(struct platform_device *pdev) irq = platform_get_irq(pdev, 0); if (irq < 0) - return -ENODEV; + return irq; res = platform_get_resource(pdev, IORESOURCE_MEM, 0); if (!res) |