Skip to content

Commit 3c78658

Browse files
Sergei Shtylyovdavem330
authored andcommitted
sh_eth: fix DMA channel misreporting
Currently 'ifconfig' for the Ethernet devices handled by this driver shows "DMA chan: ff" while the driver doesn't use any DMA channels. Not assigning a value to 'net_device::dma' causes 'ifconfig' to correctly not report a DMA channel. Signed-off-by: Sergei Shtylyov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 9345b24 commit 3c78658

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/net/ethernet/renesas/sh_eth.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2996,7 +2996,6 @@ static int sh_eth_drv_probe(struct platform_device *pdev)
29962996
if (devno < 0)
29972997
devno = 0;
29982998

2999-
ndev->dma = -1;
30002999
ret = platform_get_irq(pdev, 0);
30013000
if (ret < 0)
30023001
goto out_release;

0 commit comments

Comments
 (0)