Skip to content

Commit 65ba074

Browse files
tpetazzonigregkh
authored andcommitted
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>
1 parent ada79b5 commit 65ba074

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/usb/host/xhci-plat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static int xhci_plat_probe(struct platform_device *pdev)
9292

9393
irq = platform_get_irq(pdev, 0);
9494
if (irq < 0)
95-
return -ENODEV;
95+
return irq;
9696

9797
/* Try to set 64-bit DMA first */
9898
if (WARN_ON(!pdev->dev.dma_mask))

0 commit comments

Comments
 (0)