net: stmmac: don't use netdev_[dbg, info, ..] before net_device is registered
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 15 Jan 2017 18:19:00 +0000 (19:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jan 2017 19:52:01 +0000 (14:52 -0500)
commitb618ab4561d40664492cf9f9507f19a1c8272970
tree0f7836490e118834c800c579eaf762bab1a54de3
parentabeffce90c7f6ce74de9794ad0977a168edf8ef6
net: stmmac: don't use netdev_[dbg, info, ..] before net_device is registered

Don't use netdev_info and friends before the net_device is registered.
This avoids ugly messages like
"meson8b-dwmac c9410000.ethernet (unnamed net_device) (uninitialized):
Enable RX Mitigation via HW Watchdog Timer"

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