ep93xx: set DMA masks for the ep93xx_eth
Since the driver uses the DMA API, we should pass it valid DMA masks. Signed-off-by: Mika Westerberg <mika.westerberg@iki.fi> Acked-by: Russell King <rmk+kernel@arm.linux.org.uk> Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com> Tested-by: Petr Stetiar <ynezz@true.cz> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0b5c9db1b1
commit
fa70cf472c
1 changed files with 5 additions and 1 deletions
|
@ -402,11 +402,15 @@ static struct resource ep93xx_eth_resource[] = {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static u64 ep93xx_eth_dma_mask = DMA_BIT_MASK(32);
|
||||||
|
|
||||||
static struct platform_device ep93xx_eth_device = {
|
static struct platform_device ep93xx_eth_device = {
|
||||||
.name = "ep93xx-eth",
|
.name = "ep93xx-eth",
|
||||||
.id = -1,
|
.id = -1,
|
||||||
.dev = {
|
.dev = {
|
||||||
.platform_data = &ep93xx_eth_data,
|
.platform_data = &ep93xx_eth_data,
|
||||||
|
.coherent_dma_mask = DMA_BIT_MASK(32),
|
||||||
|
.dma_mask = &ep93xx_eth_dma_mask,
|
||||||
},
|
},
|
||||||
.num_resources = ARRAY_SIZE(ep93xx_eth_resource),
|
.num_resources = ARRAY_SIZE(ep93xx_eth_resource),
|
||||||
.resource = ep93xx_eth_resource,
|
.resource = ep93xx_eth_resource,
|
||||||
|
|
Loading…
Add table
Reference in a new issue