]> git.baikalelectronics.ru Git - kernel.git/commit
net: socionext: ave: Avoid using netdev_err() before calling register_netdev()
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Thu, 26 Sep 2019 06:35:10 +0000 (15:35 +0900)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Sep 2019 18:26:28 +0000 (20:26 +0200)
commit635ebb4db97925ff7b8863e727594bc46e917e16
treefa16e3eaffc4e470ce696eda6225e0e274bb64ce
parentc72560d00d33f0136b4b164b0ef82b38a2fcce9c
net: socionext: ave: Avoid using netdev_err() before calling register_netdev()

Until calling register_netdev(), ndev->dev_name isn't specified, and
netdev_err() displays "(unnamed net_device)".

    ave 65000000.ethernet (unnamed net_device) (uninitialized): invalid phy-mode setting
    ave: probe of 65000000.ethernet failed with error -22

This replaces netdev_err() with dev_err() before calling register_netdev().

Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/socionext/sni_ave.c