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>
This commit is contained in:
parent
ada79b5ecd
commit
65ba07489d
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ static int xhci_plat_probe(struct platform_device *pdev)
|
|||
|
||||
irq = platform_get_irq(pdev, 0);
|
||||
if (irq < 0)
|
||||
return -ENODEV;
|
||||
return irq;
|
||||
|
||||
/* Try to set 64-bit DMA first */
|
||||
if (WARN_ON(!pdev->dev.dma_mask))
|
||||
|
|
Loading…
Add table
Reference in a new issue