rocker: use netdev_err after register_netdev
authorScott Feldman <sfeldma@gmail.com>
Tue, 4 Aug 2015 05:31:18 +0000 (22:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Aug 2015 04:47:57 +0000 (21:47 -0700)
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>
drivers/net/ethernet/rocker/rocker.c

index 5309d1fd8eb3a615e49760849e36534a61640a43..b77e0e7307d45e22ea28d1bf88c14116ef3ab09b 100644 (file)
@@ -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;
        }