From: Scott Feldman Date: Tue, 4 Aug 2015 05:31:18 +0000 (-0700) Subject: rocker: use netdev_err after register_netdev X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ff1470284493ca18da852e36afe39d29d0feb875;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David S. Miller --- 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; }