]> git.baikalelectronics.ru Git - kernel.git/commit
usb: host: xhci-plat: propagate return value of platform_get_irq()
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 17 May 2017 15:32:06 +0000 (18:32 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 May 2017 13:19:42 +0000 (15:19 +0200)
commit8fff08abed56cac880ea1f9748c4ab8f2e1a96d6
tree7be835a1d5a256b167caba200abdb2966f17a315
parent9a5049e28dcc4b9a14999e4dc57e304d66ad5a24
usb: host: xhci-plat: propagate return value of platform_get_irq()

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>
drivers/usb/host/xhci-plat.c