projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
stmmac: fix error check when init ptp
[cascardo/linux.git]
/
drivers
/
net
/
ethernet
/
stmicro
/
stmmac
/
stmmac_main.c
diff --git
a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index
e838850
..
6c85b61
100644
(file)
--- a/
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@
-1709,8
+1709,8
@@
static int stmmac_hw_setup(struct net_device *dev, bool init_ptp)
if (init_ptp) {
ret = stmmac_init_ptp(priv);
- if (ret
&& ret != -EOPNOTSUPP
)
-
pr_warn("%s: failed PTP initialisation\n", __func__
);
+ if (ret)
+
netdev_warn(priv->dev, "PTP support cannot init.\n"
);
}
#ifdef CONFIG_DEBUG_FS