aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>2016-07-17 09:08:43 -0400
committerDavid S. Miller <davem@davemloft.net>2016-07-19 19:01:33 -0400
commit9345b24f9f257708201dfab2d36ad2a411a281b4 (patch)
tree98754e327f8540715fd042b80a889936c7315e06
parenteab814661945656d35d4a0e5870e932cd7139977 (diff)
ravb: 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 <sergei.shtylyov@cogentembedded.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/renesas/ravb_main.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/renesas/ravb_main.c b/drivers/net/ethernet/renesas/ravb_main.c
index 5349284203ff..8377d0220fa8 100644
--- a/drivers/net/ethernet/renesas/ravb_main.c
+++ b/drivers/net/ethernet/renesas/ravb_main.c
@@ -1908,7 +1908,6 @@ static int ravb_probe(struct platform_device *pdev)
1908 1908
1909 /* The Ether-specific entries in the device structure. */ 1909 /* The Ether-specific entries in the device structure. */
1910 ndev->base_addr = res->start; 1910 ndev->base_addr = res->start;
1911 ndev->dma = -1;
1912 1911
1913 chip_id = (enum ravb_chip_id)of_device_get_match_data(&pdev->dev); 1912 chip_id = (enum ravb_chip_id)of_device_get_match_data(&pdev->dev);
1914 1913