MIPS/malta: simplify plat_setup_iocoherency
authorChristoph Hellwig <hch@lst.de>
Wed, 10 Feb 2021 09:56:36 +0000 (10:56 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Sat, 13 Feb 2021 08:51:45 +0000 (09:51 +0100)
commit04e4783fccf4268249bff2c1be9f63013d12153a
tree5edf17f86b7d9dc0bdc530dda0af0590c7344cd8
parent7c86ff9925cbc83e8a21f164a8fdc2767e03531e
MIPS/malta: simplify plat_setup_iocoherency

Given that plat_mem_setup runs before earlyparams are handled and malta
selects CONFIG_DMA_MAYBE_COHERENT, coherentio can only be set to
IO_COHERENCE_DEFAULT at this point.  So remove the checking for other
options and merge plat_enable_iocoherency into plat_setup_iocoherency
to simplify the code a bit.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/mti-malta/malta-setup.c