]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Mar 2014 21:22:08 +0000 (17:22 -0400)
commitc6b0e17767139a89d80766292e8cbe2bd32c98c4
treedd0bbf7501a92efd1d2a8552202ea466b15be0d8
parent3a0690fb88d5b5629ef4c4e267c1abb49a78ce63
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>
drivers/net/ethernet/renesas/sh_eth.c