Skip to contentSkip to conversation

altera_tse: Correct typo in obtaining tx_fifo_depth from devicetree

PATCH In review Vince Bridgers 2 participants 2 messages Feb 23, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 altera_tse: Correct typo in obtaining tx_fifo_depth from devicetree

From: Vlastimil Setka <[email protected]>

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.

---
 drivers/net/ethernet/altera/altera_tse_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/altera/altera_tse_main.c +1 -1
index a1ee261..91ad435 100644
@@ -1407,7 +1407,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;
Signature · 1 line
1.9.1
maintainer
#1 lore raw

From: Vince Bridgers <[email protected]>
Date: Mon, 23 Feb 2015 11:27:37 -0600

Quoted 8 lines

From: Vlastimil Setka <[email protected]>

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.

This is a bug fix, so I'm applying it to 'net'.

Thanks.