Skip to content

Commit e45d0fa

Browse files
Linus Walleijkuba-moo
authored andcommitted
net: ethernet: ixp4xx: Use parent dev for DMA pool
Use the netdevice struct device .parent field when calling dma_pool_create(): the .dma_coherent_mask and .dma_mask pertains to the bus device on the hardware (platform) bus in this case, not the struct device inside the network device. This makes the pool allocation work. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent f458ac4 commit e45d0fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/xscale/ixp4xx_eth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ static int init_queues(struct port *port)
10861086
int i;
10871087

10881088
if (!ports_open) {
1089-
dma_pool = dma_pool_create(DRV_NAME, &port->netdev->dev,
1089+
dma_pool = dma_pool_create(DRV_NAME, port->netdev->dev.parent,
10901090
POOL_ALLOC_SIZE, 32, 0);
10911091
if (!dma_pool)
10921092
return -ENOMEM;

0 commit comments

Comments
 (0)