]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
net: mv643xx_eth: add phy_node to platform_data struct
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Wed, 29 May 2013 09:32:45 +0000 (09:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 May 2013 00:54:03 +0000 (17:54 -0700)
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>
include/linux/mv643xx_eth.h

index 141d395bbb5f1a215483c90b2a10d5bd0bc58ff7..6e8215b159982378847cc7aacd75747da9c604d6 100644 (file)
@@ -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.
@@ -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