[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1365871134-6834-1-git-send-email-festevam@gmail.com>
Date: Sat, 13 Apr 2013 13:38:54 -0300
From: Fabio Estevam <festevam@...il.com>
To: davem@...emloft.net
Cc: Frank.Li@...escale.com, netdev@...r.kernel.org,
Fabio Estevam <fabio.estevam@...escale.com>
Subject: [PATCH] fec: Fix PHC device log
From: Fabio Estevam <fabio.estevam@...escale.com>
Currently when booting a mx6 device we get the following on boot:
registered PHC device on eth%d
Fix it so that we can read:
registered PHC device on eth0
Signed-off-by: Fabio Estevam <fabio.estevam@...escale.com>
---
drivers/net/ethernet/freescale/fec_ptp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/freescale/fec_ptp.c b/drivers/net/ethernet/freescale/fec_ptp.c
index 1f17ca0..62e39fe 100644
--- a/drivers/net/ethernet/freescale/fec_ptp.c
+++ b/drivers/net/ethernet/freescale/fec_ptp.c
@@ -380,6 +380,6 @@ void fec_ptp_init(struct net_device *ndev, struct platform_device *pdev)
fep->ptp_clock = NULL;
pr_err("ptp_clock_register failed\n");
} else {
- pr_info("registered PHC device on %s\n", ndev->name);
+ pr_info("registered PHC device on eth%d\n", fep->dev_id);
}
}
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists