]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit545271963c2655634e042f0a386bd793a7584dc8
treec63d19ee39af6511c057340e3cc0d58d0a53b880
parentcc024534647b6ac7f8ead355252d9bbaf50eed17
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