OSDN Git Service

MIPS: OCTEON: don't set octeon_dma_bar_type if PCI is disabled
authorAaro Koskinen <aaro.koskinen@iki.fi>
Sun, 27 Jan 2019 21:28:33 +0000 (23:28 +0200)
committerPaul Burton <paul.burton@mips.com>
Tue, 29 Jan 2019 19:47:02 +0000 (11:47 -0800)
commitdcf300a69ac307053dfb35c2e33972e754a98bce
tree5d0b294999b3a7b63ac731769d351bb416ae6d64
parent1ca1c87f91d9dc50d6a38e2177b2032996e7901c
MIPS: OCTEON: don't set octeon_dma_bar_type if PCI is disabled

Don't set octeon_dma_bar_type if PCI is disabled. This avoids creation
of the MSI irqchip later on, and saves a bit of memory.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Fixes: a214720cbf50 ("Disable MSI also when pcie-octeon.pcie_disable on")
Cc: stable@vger.kernel.org # v3.3+
Cc: linux-mips@vger.kernel.org
arch/mips/pci/pci-octeon.c