summaryrefslogtreecommitdiff
path: root/drivers/block/sx8.c
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-05-16 14:06:12 +0200
committerTejun Heo <tj@kernel.org>2017-05-16 11:23:29 -0400
commitc034640a32f8456018d9c8c83799ead683046b95 (patch)
treeb1fe85d9bbfda55ac5fbdf75ff6a94604faeecdd /drivers/block/sx8.c
parent5dc63fdcc09f47fb226b8bc7d83a61feb787d817 (diff)
ata: libahci: properly propagate return value of platform_get_irq()
When platform_get_irq() fails, it returns an error code, which libahci_platform and replaces it by -EINVAL. This commit fixes that by propagating the error code. It fixes the situation where platform_get_irq() returns -EPROBE_DEFER because the interrupt controller is not available yet, and generally looks like the right thing to do. We pay attention to not show the "no irq" message when we are in an EPROBE_DEFER situation, because the driver probing will be retried later on, once the interrupt controller becomes available to provide the interrupt. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/block/sx8.c')
0 files changed, 0 insertions, 0 deletions