diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2013-08-17 18:19:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-20 20:10:41 -0400 |
commit | bd61224b1cbec096694e89c4187119c8576fe186 (patch) | |
tree | 01e26f18ba59e2932b40a97b34a4425048d9644f /arch/sh | |
parent | 06a64f91da72cb5827e2bedef2ead60a123fd66e (diff) |
SolutionEngine7724: fix Ether support
The Ether platform data is behind the declaration of 'struct sh_eth_plat_data'
as it's lacking the initializers for the 'register_type' and 'phy_interface'
fields -- it means they'll be implicitly and wrongly set to SH_ETH_REG_GIGABIT
and PHY_INTERFACE_MODE_NA. Initialize the fields explicitly and fix off-by-one
error in the Ether memory resource end, while at it...
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/boards/mach-se/7724/setup.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/sh/boards/mach-se/7724/setup.c b/arch/sh/boards/mach-se/7724/setup.c index b70180ef3e29..aed4ca9ee1f5 100644 --- a/arch/sh/boards/mach-se/7724/setup.c +++ b/arch/sh/boards/mach-se/7724/setup.c | |||
@@ -365,7 +365,7 @@ static struct platform_device keysc_device = { | |||
365 | static struct resource sh_eth_resources[] = { | 365 | static struct resource sh_eth_resources[] = { |
366 | [0] = { | 366 | [0] = { |
367 | .start = SH_ETH_ADDR, | 367 | .start = SH_ETH_ADDR, |
368 | .end = SH_ETH_ADDR + 0x1FC, | 368 | .end = SH_ETH_ADDR + 0x1FC - 1, |
369 | .flags = IORESOURCE_MEM, | 369 | .flags = IORESOURCE_MEM, |
370 | }, | 370 | }, |
371 | [1] = { | 371 | [1] = { |
@@ -377,6 +377,8 @@ static struct resource sh_eth_resources[] = { | |||
377 | static struct sh_eth_plat_data sh_eth_plat = { | 377 | static struct sh_eth_plat_data sh_eth_plat = { |
378 | .phy = 0x1f, /* SMSC LAN8187 */ | 378 | .phy = 0x1f, /* SMSC LAN8187 */ |
379 | .edmac_endian = EDMAC_LITTLE_ENDIAN, | 379 | .edmac_endian = EDMAC_LITTLE_ENDIAN, |
380 | .register_type = SH_ETH_REG_FAST_SH4, | ||
381 | .phy_interace = PHY_INTERFACE_MODE_MII, | ||
380 | }; | 382 | }; |
381 | 383 | ||
382 | static struct platform_device sh_eth_device = { | 384 | static struct platform_device sh_eth_device = { |