diff options
-rw-r--r-- | drivers/base/platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/platform.c b/drivers/base/platform.c index cfe22fded980..23cf4427f425 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c | |||
@@ -1179,6 +1179,7 @@ int __init platform_bus_init(void) | |||
1179 | return error; | 1179 | return error; |
1180 | } | 1180 | } |
1181 | 1181 | ||
1182 | #ifndef ARCH_HAS_DMA_GET_REQUIRED_MASK | ||
1182 | static u64 dma_default_get_required_mask(struct device *dev) | 1183 | static u64 dma_default_get_required_mask(struct device *dev) |
1183 | { | 1184 | { |
1184 | u32 low_totalram = ((max_pfn - 1) << PAGE_SHIFT); | 1185 | u32 low_totalram = ((max_pfn - 1) << PAGE_SHIFT); |
@@ -1198,7 +1199,6 @@ static u64 dma_default_get_required_mask(struct device *dev) | |||
1198 | return mask; | 1199 | return mask; |
1199 | } | 1200 | } |
1200 | 1201 | ||
1201 | #ifndef ARCH_HAS_DMA_GET_REQUIRED_MASK | ||
1202 | u64 dma_get_required_mask(struct device *dev) | 1202 | u64 dma_get_required_mask(struct device *dev) |
1203 | { | 1203 | { |
1204 | const struct dma_map_ops *ops = get_dma_ops(dev); | 1204 | const struct dma_map_ops *ops = get_dma_ops(dev); |