diff options
Diffstat (limited to 'arch/powerpc/platforms/85xx/mpc8536_ds.c')
-rw-r--r-- | arch/powerpc/platforms/85xx/mpc8536_ds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/85xx/mpc8536_ds.c b/arch/powerpc/platforms/85xx/mpc8536_ds.c index 585bd22b1406..767c7cf18a9c 100644 --- a/arch/powerpc/platforms/85xx/mpc8536_ds.c +++ b/arch/powerpc/platforms/85xx/mpc8536_ds.c | |||
@@ -75,7 +75,7 @@ static void __init mpc8536_ds_setup_arch(void) | |||
75 | #endif | 75 | #endif |
76 | 76 | ||
77 | #ifdef CONFIG_SWIOTLB | 77 | #ifdef CONFIG_SWIOTLB |
78 | if (memblock_end_of_DRAM() > max) { | 78 | if ((memblock_end_of_DRAM() - 1) > max) { |
79 | ppc_swiotlb_enable = 1; | 79 | ppc_swiotlb_enable = 1; |
80 | set_pci_dma_ops(&swiotlb_dma_ops); | 80 | set_pci_dma_ops(&swiotlb_dma_ops); |
81 | ppc_md.pci_dma_dev_setup = pci_dma_dev_setup_swiotlb; | 81 | ppc_md.pci_dma_dev_setup = pci_dma_dev_setup_swiotlb; |