Skip to contentSkip to conversation

ixp4xx_eth: Fix up the get_ts_info ethtool method.

PATCH Applied Richard Cochran 2 participants 2 messages Apr 7, 2012 – Apr 12, 2012

Subsystems (3)
lore
Share & tools
lore

Richard Cochran

author maintainer
#0 lore raw

PATCH 1/1 ixp4xx_eth: Fix up the get_ts_info ethtool method.

Commit e77bd1ec121ee4163a6b42a44e87b2e382c39e04 added support for a new ethtool function, but that cannot compile due to a misnamed global variable. Not that it really matters (since the IXP4xx does compile either, as of about Linux 3.1) but just in case, this patch fixes the misnamed variable in the PHC driver.

---
 drivers/ptp/ptp_ixp46x.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/ptp/ptp_ixp46x.c +2 -2
index 9d13a71..e03c406 100644
@@ -284,7 +284,7 @@ static void __exit ptp_ixp_exit(void)
 {
 	free_irq(MASTER_IRQ, &ixp_clock);
 	free_irq(SLAVE_IRQ, &ixp_clock);
-	ixp46x_phc_clock = -1;
+	ixp46x_phc_index = -1;
 	ptp_clock_unregister(ixp_clock.ptp_clock);
 }
 
@@ -303,7 +303,7 @@ static int __init ptp_ixp_init(void)
 	if (IS_ERR(ixp_clock.ptp_clock))
 		return PTR_ERR(ixp_clock.ptp_clock);
 
-	ixp46x_phc_clock = ptp_clock_index(ixp_clock.ptp_clock);
+	ixp46x_phc_index = ptp_clock_index(ixp_clock.ptp_clock);
 
 	__raw_writel(DEFAULT_ADDEND, &ixp_clock.regs->addend);
 	__raw_writel(1, &ixp_clock.regs->trgt_lo);
Signature · 1 line
1.7.2.5
maintainer Applied
#1 lore raw

From: Richard Cochran <[email protected]>
Date: Sat, 7 Apr 2012 17:56:10 +0200

Quoted 7 lines

Commit e77bd1ec121ee4163a6b42a44e87b2e382c39e04 added support for a new ethtool function, but that cannot compile due to a misnamed global variable. Not that it really matters (since the IXP4xx does compile either, as of about Linux 3.1) but just in case, this patch fixes the misnamed variable in the PHC driver.

Applied, thanks Richard.