diff options
author | Subash Abhinov Kasiviswanathan <subashab@codeaurora.org> | 2017-09-03 08:30:43 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-04 07:27:18 +0300 |
commit | 2d516c0d904af52967bb974ee58aa74819d8d05f (patch) | |
tree | 4dfc24922ca467bf6d80c899b4c5fd3e484afd5f /drivers/net/ethernet | |
parent | 61bf5490ec47f61b522ecf24958c835aefa38812 (diff) | |
download | linux-2d516c0d904af52967bb974ee58aa74819d8d05f.tar.xz |
net: qualcomm: rmnet: Move the device creation log
The current log is not very useful as it does not log the device
name since it it is prior to registration -
(unnamed net_device) (uninitialized): Setting up device
Modify to log after the device registration -
rmnet1: rmnet dev created
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c b/drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c index 0e0001becb61..7c7305208498 100644 --- a/drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c +++ b/drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c @@ -73,8 +73,6 @@ static const struct net_device_ops rmnet_vnd_ops = { */ void rmnet_vnd_setup(struct net_device *rmnet_dev) { - netdev_dbg(rmnet_dev, "Setting up device %s\n", rmnet_dev->name); - rmnet_dev->netdev_ops = &rmnet_vnd_ops; rmnet_dev->mtu = RMNET_DFLT_PACKET_SIZE; rmnet_dev->needed_headroom = RMNET_NEEDED_HEADROOM; @@ -105,6 +103,7 @@ int rmnet_vnd_newlink(u8 id, struct net_device *rmnet_dev, r->rmnet_devices[id] = rmnet_dev; r->nr_rmnet_devs++; rmnet_dev->rtnl_link_ops = &rmnet_link_ops; + netdev_dbg(rmnet_dev, "rmnet dev created\n"); } return rc; |