net: smc911x: Pull MII registration into separate function
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sat, 21 Mar 2020 16:25:41 +0000 (17:25 +0100)
committermarex <marex@desktop.lan>
Fri, 1 May 2020 10:35:21 +0000 (12:35 +0200)
commitf51a2f84969a1c88fb96414835a3b04883f3d8eb
tree6cd05075329534bf530500578046d90b191e5425
parent9741795408d2fb907256899cd9403dd57b917358
net: smc911x: Pull MII registration into separate function

Pull the MII interface registration into separate function to avoid the
ifdeffery in smc911x_initialize(). Moreover, adjust the fail path such
that we use goto labels.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/net/smc911x.c