Skip to content

Commit 2025fef

Browse files
committed
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
2 parents 5148408 + f61e643 commit 2025fef

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

arch/m68k/coldfire/device.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,11 @@ static struct platform_device mcf_fec0 = {
135135
.id = 0,
136136
.num_resources = ARRAY_SIZE(mcf_fec0_resources),
137137
.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+
}
139143
};
140144

141145
#ifdef MCFFEC_BASE1
@@ -167,7 +171,11 @@ static struct platform_device mcf_fec1 = {
167171
.id = 1,
168172
.num_resources = ARRAY_SIZE(mcf_fec1_resources),
169173
.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+
}
171179
};
172180
#endif /* MCFFEC_BASE1 */
173181
#endif /* CONFIG_FEC */

0 commit comments

Comments
 (0)