Skip to content

Commit

Permalink
ravb: fix DMA channel misreporting
Browse files Browse the repository at this point in the history
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 <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Sergei Shtylyov authored and David S. Miller committed Jul 19, 2016
1 parent eab8146 commit 9345b24
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/ethernet/renesas/ravb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1908,7 +1908,6 @@ static int ravb_probe(struct platform_device *pdev)

/* The Ether-specific entries in the device structure. */
ndev->base_addr = res->start;
ndev->dma = -1;

chip_id = (enum ravb_chip_id)of_device_get_match_data(&pdev->dev);

Expand Down

0 comments on commit 9345b24

Please sign in to comment.