diff options
Diffstat (limited to 'arch/powerpc/platforms/85xx/mpc85xx_ds.c')
-rw-r--r-- | arch/powerpc/platforms/85xx/mpc85xx_ds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_ds.c b/arch/powerpc/platforms/85xx/mpc85xx_ds.c index 1fd91e9e0ffb..d30f6c47917d 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_ds.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_ds.c | |||
@@ -173,7 +173,7 @@ static void __init mpc85xx_ds_setup_arch(void) | |||
173 | mpc85xx_smp_init(); | 173 | mpc85xx_smp_init(); |
174 | 174 | ||
175 | #ifdef CONFIG_SWIOTLB | 175 | #ifdef CONFIG_SWIOTLB |
176 | if (memblock_end_of_DRAM() > max) { | 176 | if ((memblock_end_of_DRAM() - 1) > max) { |
177 | ppc_swiotlb_enable = 1; | 177 | ppc_swiotlb_enable = 1; |
178 | set_pci_dma_ops(&swiotlb_dma_ops); | 178 | set_pci_dma_ops(&swiotlb_dma_ops); |
179 | ppc_md.pci_dma_dev_setup = pci_dma_dev_setup_swiotlb; | 179 | ppc_md.pci_dma_dev_setup = pci_dma_dev_setup_swiotlb; |