sh_eth: Simplify MDIO bus initialization and release
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 20 Mar 2014 14:00:33 +0000 (15:00 +0100)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:21:29 +0000 (09:21 +0900)
commit90802eeecab775d2f5c6a58f65379b9ead5b9112
tree0ea51376800ca4e710ce79e96bfd520587afa011
parent879b3c9e97ac9fb8cf3890bb710522dfc3d1f64b
sh_eth: Simplify MDIO bus initialization and release

The network device passed to the sh_mdio_init and sh_mdio_release
functions is only used to access the sh_eth_private instance. Pass it
directly to those functions.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit bd920ff553ba17f19372501a14e432d9d92b102b)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/net/ethernet/renesas/sh_eth.c