diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-05-17 11:32:06 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-05-25 09:44:39 -0400 |
commit | 1a926919364fc1840ad3e47b3d900f62483f424b (patch) | |
tree | b71f45410bb73e245a815922eb287d85f5133bb4 /drivers | |
parent | 374a3fb5c3b0934cfda09bcf6362058249e7869b (diff) |
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>
Diffstat (limited to 'drivers')
-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 be1572331a64..ca8b0b1ae37d 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c | |||
@@ -153,7 +153,7 @@ static int xhci_plat_probe(struct platform_device *pdev) | |||
153 | 153 | ||
154 | irq = platform_get_irq(pdev, 0); | 154 | irq = platform_get_irq(pdev, 0); |
155 | if (irq < 0) | 155 | if (irq < 0) |
156 | return -ENODEV; | 156 | return irq; |
157 | 157 | ||
158 | /* Try to set 64-bit DMA first */ | 158 | /* Try to set 64-bit DMA first */ |
159 | if (WARN_ON(!pdev->dev.dma_mask)) | 159 | if (WARN_ON(!pdev->dev.dma_mask)) |