Skip to contentSkip to conversation

atl1c: fix spelling error

PATCH In review [email protected] 2 participants 2 messages Jun 1, 2009

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

PATCH 1/1 atl1c: fix spelling error

Fix spelling error

---

drivers/net/atl1c/atl1c_main.c +1 -1
index 598c294..8475ff4 100644
@@ -1115,7 +1115,7 @@ static int atl1c_stop_mac(struct atl1c_hw *hw)
 
 	AT_READ_REG(hw, REG_TXQ_CTRL, &data);
 	data &= ~TXQ_CTRL_EN;
-	AT_WRITE_REG(hw, REG_TWSI_CTRL, data);
+	AT_WRITE_REG(hw, REG_TXQ_CTRL, data);
 
 	for (timeout = 0; timeout < AT_HW_MAX_IDLE_DELAY; timeout++) {
 		AT_READ_REG(hw, REG_IDLE_STATUS, &data);
maintainer
#1 lore raw

From: <[email protected]>
Date: Mon, 1 Jun 2009 10:07:58 +0800

Quoted 3 lines

Fix spelling error

...

drivers/net/atl1c/atl1c_main.c static int atl1c_stop_mac(struct atl1c_hw *hw) · line 1121

Quoted 9 lines
drivers/net/atl1c/atl1c_main.c +1 -1
@@ -1115,7 +1115,7 @@ static int atl1c_stop_mac(struct atl1c_hw *hw)
 
 	AT_READ_REG(hw, REG_TXQ_CTRL, &data);
 	data &= ~TXQ_CTRL_EN;
-	AT_WRITE_REG(hw, REG_TWSI_CTRL, data);
+	AT_WRITE_REG(hw, REG_TXQ_CTRL, data);
 
 	for (timeout = 0; timeout < AT_HW_MAX_IDLE_DELAY; timeout++) {
 		AT_READ_REG(hw, REG_IDLE_STATUS, &data);

A spelling error would occur on human language text.

That's not what this is.

The code is referring to the wrong register, so it's a bug not a spelling error.

Please fix your commit message and resubmit.