diff options
author | Scott Feldman <sfeldma@gmail.com> | 2015-08-03 22:31:18 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-06 21:47:57 -0700 |
commit | ff1470284493ca18da852e36afe39d29d0feb875 (patch) | |
tree | f55c9449a3aa9baf0acb1c69466840352283b337 /drivers/net/ethernet/rocker/rocker.c | |
parent | 6c4f7780a5dd6773a653c87bf7ee61c6aea6a4e7 (diff) |
rocker: use netdev_err after register_netdev
After successful register_netdev, we can use netdev_err rather the more
generic dev_err.
Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/rocker/rocker.c')
-rw-r--r-- | drivers/net/ethernet/rocker/rocker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/rocker/rocker.c b/drivers/net/ethernet/rocker/rocker.c index 5309d1fd8eb3..b77e0e7307d4 100644 --- a/drivers/net/ethernet/rocker/rocker.c +++ b/drivers/net/ethernet/rocker/rocker.c @@ -4988,7 +4988,7 @@ static int rocker_probe_port(struct rocker *rocker, unsigned int port_number) err = rocker_port_ig_tbl(rocker_port, SWITCHDEV_TRANS_NONE, 0); if (err) { - dev_err(&pdev->dev, "install ig port table failed\n"); + netdev_err(rocker_port->dev, "install ig port table failed\n"); goto err_port_ig_tbl; } |