From: Scott Feldman Date: Tue, 4 Aug 2015 05:31:18 +0000 (-0700) Subject: rocker: use netdev_err after register_netdev X-Git-Tag: v5.15~15163^2~226 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ff1470284493ca18da852e36afe39d29d0feb875;p=platform%2Fkernel%2Flinux-starfive.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 5309d1f..b77e0e7 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; }