]> git.baikalelectronics.ru Git - kernel.git/commit
vfio: platform: Switch to platform_get_irq_optional()
authorEric Auger <eric.auger@redhat.com>
Tue, 24 Mar 2020 15:26:30 +0000 (09:26 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Apr 2020 08:50:19 +0000 (10:50 +0200)
commit4aa0d9b2b548ea9d9ec104a2ad41449e50586f9d
treee918511d25bd81a0b19b9dddceac116e6c08e09a
parente936ae82249d51334b6233c2e08aef728442c718
vfio: platform: Switch to platform_get_irq_optional()

commit 0f34be89131e79d0ca62ec7533a680a3a5472604 upstream.

Since commit 682a742ed79d ("driver core: platform: Add an error
message to platform_get_irq*()"), platform_get_irq() calls dev_err()
on an error. As we enumerate all interrupts until platform_get_irq()
fails, we now systematically get a message such as:
"vfio-platform fff51000.ethernet: IRQ index 3 not found" which is
a false positive.

Let's use platform_get_irq_optional() instead.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Cc: stable@vger.kernel.org # v5.3+
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Tested-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/vfio/platform/vfio_platform.c