diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2013-05-27 05:48:29 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-05-28 07:29:54 +0200 |
commit | f4e9f3d2fdb141d920c9fd7bd5ea7db348f6d3be (patch) | |
tree | 91de00d3ac2b93c126eb0abe5f29254f694445ed /drivers/net/ethernet/freescale/fec.h | |
parent | be2net: Trim padded packets for Lancer (diff) | |
download | linux-f4e9f3d2fdb141d920c9fd7bd5ea7db348f6d3be.tar.xz linux-f4e9f3d2fdb141d920c9fd7bd5ea7db348f6d3be.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/freescale/fec.h')
-rw-r--r-- | drivers/net/ethernet/freescale/fec.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/fec.h b/drivers/net/ethernet/freescale/fec.h index 9ce5b7185fda..b11cdbcc04ff 100644 --- a/drivers/net/ethernet/freescale/fec.h +++ b/drivers/net/ethernet/freescale/fec.h @@ -272,6 +272,7 @@ struct fec_enet_private { int hwts_tx_en; struct timer_list time_keep; struct fec_enet_delayed_work delay_work; + struct regulator *reg_phy; }; void fec_ptp_init(struct net_device *ndev, struct platform_device *pdev); |