r8169: don't use netif_info et al before net_device has been registered
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 22 Apr 2018 15:15:15 +0000 (17:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Apr 2018 15:59:22 +0000 (11:59 -0400)
commit22148df0d0bdbd5d1cca4e069e17bf49b070498f
treee1c3eafaf32f20f8b5ae69a238cce77e2f4426d1
parentc6849a3ac17e336811f1d5bba991d2a9bdc47af1
r8169: don't use netif_info et al before net_device has been registered

There's no benefit in using netif_info et al before the net_device has
been registered. We get messages like
r8169 0000:03:00.0 (unnamed net_device) (uninitialized): [message]
Therefore use dev_info/dev_err instead.

As a side effect we don't need parameter dev for function
rtl8169_get_mac_version() any longer.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c