kirkwood: switch to 3.14
[openwrt.git] / target / linux / kirkwood / patches-3.10 / 0022-net-mv643xx_eth-add-phy_node-to-platform_data-struct.patch
1 From 30b19330e175f621b04718bc4e55db75768997aa Mon Sep 17 00:00:00 2001
2 From: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
3 Date: Wed, 29 May 2013 09:32:45 +0000
4 Subject: [PATCH 22/29] net: mv643xx_eth: add phy_node to platform_data struct
5
6 This adds a struct device_node pointer for a phy passed by phandle
7 to mv643xx_eth node.
8
9 Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
10 Signed-off-by: David S. Miller <davem@davemloft.net>
11 ---
12  include/linux/mv643xx_eth.h | 2 ++
13  1 file changed, 2 insertions(+)
14
15 --- a/include/linux/mv643xx_eth.h
16 +++ b/include/linux/mv643xx_eth.h
17 @@ -30,6 +30,7 @@ struct mv643xx_eth_shared_platform_data
18  #define MV643XX_ETH_PHY_ADDR(x)                (0x80 | (x))
19  #define MV643XX_ETH_PHY_NONE           0xff
20  
21 +struct device_node;
22  struct mv643xx_eth_platform_data {
23         /*
24          * Pointer back to our parent instance, and our port number.
25 @@ -41,6 +42,7 @@ struct mv643xx_eth_platform_data {
26          * Whether a PHY is present, and if yes, at which address.
27          */
28         int                     phy_addr;
29 +       struct device_node      *phy_node;
30  
31         /*
32          * Use this MAC address if it is valid, overriding the