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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Feb 2019 09:13:18 +0000 (10:13 +0100)
commit91aaa0dd778be889777e53a1576c31bf249e0a5f
tree165f925a5d3c9944997b60529cd7bf983f12055c
parentd93fdf4464a0fedd4d797f27a3945092681f6e11
MIPS: OCTEON: don't set octeon_dma_bar_type if PCI is disabled

commit dcf300a69ac307053dfb35c2e33972e754a98bce upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/pci/pci-octeon.c