mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
staging: fsl-dpaa2/eth: Don't use netdev_err too early
Early during probe the netdevice name is not initialized yet, so use dev_err instead of netdev_err when printing error messages. Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
112197de6d
commit
0f4c295f54
1 changed files with 1 additions and 1 deletions
|
@ -2114,7 +2114,7 @@ static int bind_dpni(struct dpaa2_eth_priv *priv)
|
|||
*/
|
||||
err = dpaa2_eth_set_hash(net_dev, DPAA2_RXH_SUPPORTED);
|
||||
if (err)
|
||||
netdev_err(net_dev, "Failed to configure hashing\n");
|
||||
dev_err(dev, "Failed to configure hashing\n");
|
||||
|
||||
/* Configure handling of error frames */
|
||||
err_cfg.errors = DPAA2_FAS_RX_ERR_MASK;
|
||||
|
|
Loading…
Reference in a new issue