diff options
Diffstat (limited to 'arch/powerpc/platforms/85xx/mpc85xx_mds.c')
-rw-r--r-- | arch/powerpc/platforms/85xx/mpc85xx_mds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_mds.c b/arch/powerpc/platforms/85xx/mpc85xx_mds.c index d208ebccb91c..8e4b094c553b 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_mds.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_mds.c | |||
@@ -359,7 +359,7 @@ static void __init mpc85xx_mds_setup_arch(void) | |||
359 | mpc85xx_mds_qe_init(); | 359 | mpc85xx_mds_qe_init(); |
360 | 360 | ||
361 | #ifdef CONFIG_SWIOTLB | 361 | #ifdef CONFIG_SWIOTLB |
362 | if (memblock_end_of_DRAM() > max) { | 362 | if ((memblock_end_of_DRAM() - 1) > max) { |
363 | ppc_swiotlb_enable = 1; | 363 | ppc_swiotlb_enable = 1; |
364 | set_pci_dma_ops(&swiotlb_dma_ops); | 364 | set_pci_dma_ops(&swiotlb_dma_ops); |
365 | ppc_md.pci_dma_dev_setup = pci_dma_dev_setup_swiotlb; | 365 | ppc_md.pci_dma_dev_setup = pci_dma_dev_setup_swiotlb; |