Skip to content

Commit

Permalink
net: mv643xx_eth: add phy_node to platform_data struct
Browse files Browse the repository at this point in the history
This adds a struct device_node pointer for a phy passed by phandle
to mv643xx_eth node.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Sebastian Hesselbarth authored and David S. Miller committed May 31, 2013
1 parent 65a6f96 commit 5f29235
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/linux/mv643xx_eth.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ struct mv643xx_eth_shared_platform_data {
#define MV643XX_ETH_PHY_ADDR(x) (0x80 | (x))
#define MV643XX_ETH_PHY_NONE 0xff

struct device_node;
struct mv643xx_eth_platform_data {
/*
* Pointer back to our parent instance, and our port number.
Expand All @@ -41,6 +42,7 @@ struct mv643xx_eth_platform_data {
* Whether a PHY is present, and if yes, at which address.
*/
int phy_addr;
struct device_node *phy_node;

/*
* Use this MAC address if it is valid, overriding the
Expand Down

0 comments on commit 5f29235

Please sign in to comment.