Re: [PATCH net] net: socionext: ave: Avoid using netdev_err() before calling register_netdev()

From: David Miller
Date: Fri Sep 27 2019 - 14:28:56 EST


From: Kunihiko Hayashi <hayashi.kunihiko@xxxxxxxxxxxxx>
Date: Thu, 26 Sep 2019 15:35:10 +0900

> 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@xxxxxxxxxxxxx>

Applied.