PCI: tegra: Add missing cleanup in error path and tegra_msi_teardown_irq()
authorJisheng Zhang <jszhang@marvell.com>
Tue, 29 Jul 2014 01:33:30 +0000 (09:33 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 4 Sep 2014 20:49:24 +0000 (14:49 -0600)
We should call tegra_msi_free() to free the MSI bit if irq_create_mapping()
fails.  And we need to dispose the IRQ mapping during IRQ teardown.

[bhelgaas: made irqd_to_hwirq() change suggested by Thierry]
Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
drivers/pci/host/pci-tegra.c

Simple merge