Dmitry Baryshkov 3c62f878a9 PCI: dwc: Correct msi_irq condition in dw_pcie_free_msi()
The dwc-based drivers set pp->msi_irq to -ENODEV if they do not want the
dwc core to do anything with pp->msi_irq.

dw_pcie_host_init() sets the handler and data when "pp->msi_irq > 0", so
use the same condition when removing the handler and data in
dw_pcie_free_msi().

Link: https://lore.kernel.org/r/20220707134733.2436629-2-dmitry.baryshkov@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
2022-08-01 15:15:32 -05:00
..
2022-05-31 09:56:54 -07:00
2021-06-16 17:20:40 -05:00
2022-03-07 12:06:10 -07:00
2022-03-09 18:30:46 -06:00
2022-03-09 18:30:46 -06:00
2022-05-31 09:56:54 -07:00
2022-05-27 15:25:10 -07:00
2022-05-31 09:56:54 -07:00
2022-01-16 08:08:11 +02:00
2022-03-22 11:23:53 -05:00
2021-02-10 16:46:29 -06:00
2022-03-22 17:16:21 -05:00
2021-09-28 13:43:17 -05:00
2020-08-05 18:23:14 -05:00