diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2008-05-28 10:17:39 -0400 |
---|---|---|
committer | Lennert Buytenhek <buytenh@marvell.com> | 2008-06-22 16:44:48 -0400 |
commit | 2850a037734eac0af2e6abc4e8be986c3edfd834 (patch) | |
tree | ab0e8a470dc8464fff2452b2580cc41b397a8ccc | |
parent | b206ed0462b7112d07bb9f245bf49f5e95ff174a (diff) |
[ARM] Orion: avoid setting ->force_phy_addr
The mv643xx_eth platform data field ->force_phy_addr only needs
to be set if the passed-in ->phy_addr field is zero (to distinguish
the case of not having specified a phy address
(force_phy_addr = 0) from the case where a phy address of zero needs
to be used (force_phy_addr = 1.))
Also, the ->force_phy_addr field will hopefully disappear in a
future mv643xx_eth reorganisation.
Therefore, this patch deletes the ->force_phy_addr field initialiser
from all Orion board code.
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
-rw-r--r-- | arch/arm/mach-orion5x/db88f5281-setup.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-orion5x/dns323-setup.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-orion5x/kurobox_pro-setup.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-orion5x/rd88f5182-setup.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-orion5x/ts209-setup.c | 1 |
5 files changed, 0 insertions, 5 deletions
diff --git a/arch/arm/mach-orion5x/db88f5281-setup.c b/arch/arm/mach-orion5x/db88f5281-setup.c index 3fee400c81ab..00ad36ade57e 100644 --- a/arch/arm/mach-orion5x/db88f5281-setup.c +++ b/arch/arm/mach-orion5x/db88f5281-setup.c | |||
@@ -286,7 +286,6 @@ subsys_initcall(db88f5281_pci_init); | |||
286 | ****************************************************************************/ | 286 | ****************************************************************************/ |
287 | static struct mv643xx_eth_platform_data db88f5281_eth_data = { | 287 | static struct mv643xx_eth_platform_data db88f5281_eth_data = { |
288 | .phy_addr = 8, | 288 | .phy_addr = 8, |
289 | .force_phy_addr = 1, | ||
290 | }; | 289 | }; |
291 | 290 | ||
292 | /***************************************************************************** | 291 | /***************************************************************************** |
diff --git a/arch/arm/mach-orion5x/dns323-setup.c b/arch/arm/mach-orion5x/dns323-setup.c index ad810aa5fff5..64730a045ff6 100644 --- a/arch/arm/mach-orion5x/dns323-setup.c +++ b/arch/arm/mach-orion5x/dns323-setup.c | |||
@@ -80,7 +80,6 @@ subsys_initcall(dns323_pci_init); | |||
80 | 80 | ||
81 | static struct mv643xx_eth_platform_data dns323_eth_data = { | 81 | static struct mv643xx_eth_platform_data dns323_eth_data = { |
82 | .phy_addr = 8, | 82 | .phy_addr = 8, |
83 | .force_phy_addr = 1, | ||
84 | }; | 83 | }; |
85 | 84 | ||
86 | /**************************************************************************** | 85 | /**************************************************************************** |
diff --git a/arch/arm/mach-orion5x/kurobox_pro-setup.c b/arch/arm/mach-orion5x/kurobox_pro-setup.c index b8414f6e0e83..8b4a8aa5a836 100644 --- a/arch/arm/mach-orion5x/kurobox_pro-setup.c +++ b/arch/arm/mach-orion5x/kurobox_pro-setup.c | |||
@@ -158,7 +158,6 @@ subsys_initcall(kurobox_pro_pci_init); | |||
158 | 158 | ||
159 | static struct mv643xx_eth_platform_data kurobox_pro_eth_data = { | 159 | static struct mv643xx_eth_platform_data kurobox_pro_eth_data = { |
160 | .phy_addr = 8, | 160 | .phy_addr = 8, |
161 | .force_phy_addr = 1, | ||
162 | }; | 161 | }; |
163 | 162 | ||
164 | /***************************************************************************** | 163 | /***************************************************************************** |
diff --git a/arch/arm/mach-orion5x/rd88f5182-setup.c b/arch/arm/mach-orion5x/rd88f5182-setup.c index 44ad5de87b79..10ae62864269 100644 --- a/arch/arm/mach-orion5x/rd88f5182-setup.c +++ b/arch/arm/mach-orion5x/rd88f5182-setup.c | |||
@@ -222,7 +222,6 @@ subsys_initcall(rd88f5182_pci_init); | |||
222 | 222 | ||
223 | static struct mv643xx_eth_platform_data rd88f5182_eth_data = { | 223 | static struct mv643xx_eth_platform_data rd88f5182_eth_data = { |
224 | .phy_addr = 8, | 224 | .phy_addr = 8, |
225 | .force_phy_addr = 1, | ||
226 | }; | 225 | }; |
227 | 226 | ||
228 | /***************************************************************************** | 227 | /***************************************************************************** |
diff --git a/arch/arm/mach-orion5x/ts209-setup.c b/arch/arm/mach-orion5x/ts209-setup.c index 5ad7ad9b9461..80b62329f586 100644 --- a/arch/arm/mach-orion5x/ts209-setup.c +++ b/arch/arm/mach-orion5x/ts209-setup.c | |||
@@ -191,7 +191,6 @@ subsys_initcall(qnap_ts209_pci_init); | |||
191 | 191 | ||
192 | static struct mv643xx_eth_platform_data qnap_ts209_eth_data = { | 192 | static struct mv643xx_eth_platform_data qnap_ts209_eth_data = { |
193 | .phy_addr = 8, | 193 | .phy_addr = 8, |
194 | .force_phy_addr = 1, | ||
195 | }; | 194 | }; |
196 | 195 | ||
197 | static int __init parse_hex_nibble(char n) | 196 | static int __init parse_hex_nibble(char n) |