From: Todd Poynor Date: Mon, 17 Sep 2018 12:38:57 +0000 (-0700) Subject: staging: gasket: interrupt: remove PCI-MSIX-specific status check X-Git-Tag: v5.4-rc1~2324^2~372 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=467976ff6e566a695c2964bb2ca24eba154a1d82;p=platform%2Fkernel%2Flinux-rpi.git staging: gasket: interrupt: remove PCI-MSIX-specific status check Devices not using MSIX don't use the msix_initialized field, so don't require it to be set in the interrupt system status check. The general check for interrupts configured that follows can cover both MSIX and device-managed interrupts. Signed-off-by: Todd Poynor Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/gasket/gasket_interrupt.c b/drivers/staging/gasket/gasket_interrupt.c index 2cd262b..49d47af 100644 --- a/drivers/staging/gasket/gasket_interrupt.c +++ b/drivers/staging/gasket/gasket_interrupt.c @@ -478,11 +478,6 @@ int gasket_interrupt_system_status(struct gasket_dev *gasket_dev) return GASKET_STATUS_DEAD; } - if (!gasket_dev->interrupt_data->msix_configured) { - dev_dbg(gasket_dev->dev, "Interrupt not initialized\n"); - return GASKET_STATUS_LAMED; - } - if (gasket_dev->interrupt_data->num_configured != gasket_dev->interrupt_data->num_interrupts) { dev_dbg(gasket_dev->dev,