fec: Place the phy regulator in the private structure
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 27 May 2013 03:48:29 +0000 (03:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 May 2013 05:29:54 +0000 (22:29 -0700)
commitf4e9f3d2fdb141d920c9fd7bd5ea7db348f6d3be
tree91de00d3ac2b93c126eb0abe5f29254f694445ed
parent3904dcc4a7af8e28e45a8d123cef3f7653847a51
fec: Place the phy regulator in the private structure

Instead of using a local reg_phy structure, let's put it inside the private
structure, so that we are able to have access to the regulator structure even
when we are outside fec_probe().

This is in preparation for controlling the FEC PHY regulator in the suspend and
resume functions.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec.h
drivers/net/ethernet/freescale/fec_main.c