Skip to content

Commit

Permalink
usb: host: xhci-plat: propagate return value of platform_get_irq()
Browse files Browse the repository at this point in the history
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: 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>
  • Loading branch information
Thomas Petazzoni authored and Greg Kroah-Hartman committed May 18, 2017
1 parent 604d02a commit 4b148d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/host/xhci-plat.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ static int xhci_plat_probe(struct platform_device *pdev)

irq = platform_get_irq(pdev, 0);
if (irq < 0)
return -ENODEV;
return irq;

/*
* sysdev must point to a device that is known to the system firmware
Expand Down

0 comments on commit 4b148d5

Please sign in to comment.