altera_tse: Correct typo in obtaining tx_fifo_depth from devicetree
authorVlastimil Setka <setka@vsis.cz>
Mon, 23 Feb 2015 17:27:37 +0000 (11:27 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Feb 2015 23:07:35 +0000 (18:07 -0500)
This patch corrects a typo in the way tx_fifo_depth is read from the
devicetree. This patch was submitted by Vlastimil about a week ago,
and is now cleaned up and resubmitted.

Signed-off-by: Vlastimil Setka <setka@vsis.cz>
Signed-off-by: Vince Bridgers <vbridger@opensource.altera.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/altera/altera_tse_main.c

index 760c72c6e2acd50ba8472e4b4dd77170c2c381d6..f3d784a3463dc02f1dd30c1512eb8a2cce1d7516 100644 (file)
@@ -1399,7 +1399,7 @@ static int altera_tse_probe(struct platform_device *pdev)
        }
 
        if (of_property_read_u32(pdev->dev.of_node, "tx-fifo-depth",
-                                &priv->rx_fifo_depth)) {
+                                &priv->tx_fifo_depth)) {
                dev_err(&pdev->dev, "cannot obtain tx-fifo-depth\n");
                ret = -ENXIO;
                goto err_free_netdev;