aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-04-09 12:15:46 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-04-09 12:15:46 -0400
commit2025fef0ca0c8c7fa730a3e0399243721a4925f1 (patch)
tree8f47e5caa973d648cf6a2aaa46b68c5fed2491df
parent5148408a5165e2f69203fcf4481a8153837ef260 (diff)
parentf61e64310b75733d782e930d1fb404b84699eed6 (diff)
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu
Pull m68knommu update from Greg Ungerer: "Only a single fix to set the DMA masks in the ColdFire FEC platform data structure. This stops the warning from dma-mapping.h at boot time" * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu: m68k: set dma and coherent masks for platform FEC ethernets
-rw-r--r--arch/m68k/coldfire/device.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/arch/m68k/coldfire/device.c b/arch/m68k/coldfire/device.c
index 84938fdbbada..908d58347790 100644
--- a/arch/m68k/coldfire/device.c
+++ b/arch/m68k/coldfire/device.c
@@ -135,7 +135,11 @@ static struct platform_device mcf_fec0 = {
135 .id = 0, 135 .id = 0,
136 .num_resources = ARRAY_SIZE(mcf_fec0_resources), 136 .num_resources = ARRAY_SIZE(mcf_fec0_resources),
137 .resource = mcf_fec0_resources, 137 .resource = mcf_fec0_resources,
138 .dev.platform_data = FEC_PDATA, 138 .dev = {
139 .dma_mask = &mcf_fec0.dev.coherent_dma_mask,
140 .coherent_dma_mask = DMA_BIT_MASK(32),
141 .platform_data = FEC_PDATA,
142 }
139}; 143};
140 144
141#ifdef MCFFEC_BASE1 145#ifdef MCFFEC_BASE1
@@ -167,7 +171,11 @@ static struct platform_device mcf_fec1 = {
167 .id = 1, 171 .id = 1,
168 .num_resources = ARRAY_SIZE(mcf_fec1_resources), 172 .num_resources = ARRAY_SIZE(mcf_fec1_resources),
169 .resource = mcf_fec1_resources, 173 .resource = mcf_fec1_resources,
170 .dev.platform_data = FEC_PDATA, 174 .dev = {
175 .dma_mask = &mcf_fec1.dev.coherent_dma_mask,
176 .coherent_dma_mask = DMA_BIT_MASK(32),
177 .platform_data = FEC_PDATA,
178 }
171}; 179};
172#endif /* MCFFEC_BASE1 */ 180#endif /* MCFFEC_BASE1 */
173#endif /* CONFIG_FEC */ 181#endif /* CONFIG_FEC */