diff options
Diffstat (limited to 'arch/powerpc/kernel/dma.c')
-rw-r--r-- | arch/powerpc/kernel/dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/dma.c b/arch/powerpc/kernel/dma.c index 03b98f1f98ec..41c749586bd2 100644 --- a/arch/powerpc/kernel/dma.c +++ b/arch/powerpc/kernel/dma.c | |||
@@ -33,7 +33,7 @@ static u64 __maybe_unused get_pfn_limit(struct device *dev) | |||
33 | struct dev_archdata __maybe_unused *sd = &dev->archdata; | 33 | struct dev_archdata __maybe_unused *sd = &dev->archdata; |
34 | 34 | ||
35 | #ifdef CONFIG_SWIOTLB | 35 | #ifdef CONFIG_SWIOTLB |
36 | if (sd->max_direct_dma_addr && sd->dma_ops == &swiotlb_dma_ops) | 36 | if (sd->max_direct_dma_addr && dev->dma_ops == &swiotlb_dma_ops) |
37 | pfn = min_t(u64, pfn, sd->max_direct_dma_addr >> PAGE_SHIFT); | 37 | pfn = min_t(u64, pfn, sd->max_direct_dma_addr >> PAGE_SHIFT); |
38 | #endif | 38 | #endif |
39 | 39 | ||