net: eepro100: Factor out MII registration
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sat, 23 May 2020 14:20:25 +0000 (16:20 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Thu, 18 Jun 2020 17:34:40 +0000 (19:34 +0200)
commit66fed7300d250197c24fb54cad7f6cae7df95fe1
treec63d19ee39af6511c057340e3cc0d58d0a53b880
parent6c7d3f6b3fb5860f55d1c7733d2b5929e0721e99
net: eepro100: Factor out MII registration

Pull the MII registration code into a separate function. Moreover,
properly free memory in case any of the registration or allocation
functions fail, so this fixes an existing memleak.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
drivers/net/eepro100.c