mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-17 14:05:52 +00:00
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>
This commit is contained in:
parent
f458ac4797
commit
e45d0fad4a
1 changed files with 1 additions and 1 deletions
|
@ -1086,7 +1086,7 @@ static int init_queues(struct port *port)
|
|||
int i;
|
||||
|
||||
if (!ports_open) {
|
||||
dma_pool = dma_pool_create(DRV_NAME, &port->netdev->dev,
|
||||
dma_pool = dma_pool_create(DRV_NAME, port->netdev->dev.parent,
|
||||
POOL_ALLOC_SIZE, 32, 0);
|
||||
if (!dma_pool)
|
||||
return -ENOMEM;
|
||||
|
|
Loading…
Add table
Reference in a new issue