fec: Fix PHC device log
Currently when booting a mx6 device we get the following on boot: registered PHC device on eth%d Fix it by printing the network device name only after it gets registered, so that the following can be read now: fec 2188000.ethernet eth0: registered PHC device 0 Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
ca7c4a45d1
commit
eb1d064058
@@ -379,7 +379,5 @@ void fec_ptp_init(struct net_device *ndev, struct platform_device *pdev)
|
||||
if (IS_ERR(fep->ptp_clock)) {
|
||||
fep->ptp_clock = NULL;
|
||||
pr_err("ptp_clock_register failed\n");
|
||||
} else {
|
||||
pr_info("registered PHC device on %s\n", ndev->name);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user