diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2013-08-17 19:13:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-20 20:10:41 -0400 |
commit | 8d3214c4e8c8be6efd8ec7a172239ebbd4deb04b (patch) | |
tree | 46c0ca5fea329ac0182c7784b7b6247b38a4718e | |
parent | a3153d8c41132d6fda080a4b3e53b7ee25d3c125 (diff) |
sh_eth: remove 'register_type' field from 'struct sh_eth_plat_data'
Now that the 'register_type' field of the 'sh_eth' driver's platform data is not
used by the driver anymore, it's time to remove it and its initializers from
the SH platform code. Also move *enum* declaring values for this field from
<linux/sh_eth.h> to the local driver's header file as they're only needed
by the driver itself now...
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | arch/arm/mach-shmobile/board-armadillo800eva.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/board-bockw.c | 1 | ||||
-rw-r--r-- | arch/sh/boards/board-espt.c | 1 | ||||
-rw-r--r-- | arch/sh/boards/board-sh7757lcr.c | 4 | ||||
-rw-r--r-- | arch/sh/boards/mach-ecovec24/setup.c | 1 | ||||
-rw-r--r-- | arch/sh/boards/mach-se/7724/setup.c | 1 | ||||
-rw-r--r-- | arch/sh/boards/mach-sh7763rdp/setup.c | 1 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh2/setup-sh7619.c | 1 | ||||
-rw-r--r-- | drivers/net/ethernet/renesas/sh_eth.h | 7 | ||||
-rw-r--r-- | include/linux/sh_eth.h | 7 |
10 files changed, 7 insertions, 18 deletions
diff --git a/arch/arm/mach-shmobile/board-armadillo800eva.c b/arch/arm/mach-shmobile/board-armadillo800eva.c index c5be60d85e4b..3a6ffa250fb1 100644 --- a/arch/arm/mach-shmobile/board-armadillo800eva.c +++ b/arch/arm/mach-shmobile/board-armadillo800eva.c | |||
@@ -358,7 +358,6 @@ static struct platform_device usbhsf_device = { | |||
358 | static struct sh_eth_plat_data sh_eth_platdata = { | 358 | static struct sh_eth_plat_data sh_eth_platdata = { |
359 | .phy = 0x00, /* LAN8710A */ | 359 | .phy = 0x00, /* LAN8710A */ |
360 | .edmac_endian = EDMAC_LITTLE_ENDIAN, | 360 | .edmac_endian = EDMAC_LITTLE_ENDIAN, |
361 | .register_type = SH_ETH_REG_GIGABIT, | ||
362 | .phy_interface = PHY_INTERFACE_MODE_MII, | 361 | .phy_interface = PHY_INTERFACE_MODE_MII, |
363 | }; | 362 | }; |
364 | 363 | ||
diff --git a/arch/arm/mach-shmobile/board-bockw.c b/arch/arm/mach-shmobile/board-bockw.c index 3354a85c90f7..fa8885b2d5a5 100644 --- a/arch/arm/mach-shmobile/board-bockw.c +++ b/arch/arm/mach-shmobile/board-bockw.c | |||
@@ -89,7 +89,6 @@ static struct sh_mobile_sdhi_info sdhi0_info = { | |||
89 | static struct sh_eth_plat_data ether_platform_data __initdata = { | 89 | static struct sh_eth_plat_data ether_platform_data __initdata = { |
90 | .phy = 0x01, | 90 | .phy = 0x01, |
91 | .edmac_endian = EDMAC_LITTLE_ENDIAN, | 91 | .edmac_endian = EDMAC_LITTLE_ENDIAN, |
92 | .register_type = SH_ETH_REG_FAST_RCAR, | ||
93 | .phy_interface = PHY_INTERFACE_MODE_RMII, | 92 | .phy_interface = PHY_INTERFACE_MODE_RMII, |
94 | /* | 93 | /* |
95 | * Although the LINK signal is available on the board, it's connected to | 94 | * Although the LINK signal is available on the board, it's connected to |
diff --git a/arch/sh/boards/board-espt.c b/arch/sh/boards/board-espt.c index 4d94dff9015c..7291e2f11a47 100644 --- a/arch/sh/boards/board-espt.c +++ b/arch/sh/boards/board-espt.c | |||
@@ -80,7 +80,6 @@ static struct resource sh_eth_resources[] = { | |||
80 | static struct sh_eth_plat_data sh7763_eth_pdata = { | 80 | static struct sh_eth_plat_data sh7763_eth_pdata = { |
81 | .phy = 0, | 81 | .phy = 0, |
82 | .edmac_endian = EDMAC_LITTLE_ENDIAN, | 82 | .edmac_endian = EDMAC_LITTLE_ENDIAN, |
83 | .register_type = SH_ETH_REG_GIGABIT, | ||
84 | .phy_interface = PHY_INTERFACE_MODE_MII, | 83 | .phy_interface = PHY_INTERFACE_MODE_MII, |
85 | }; | 84 | }; |
86 | 85 | ||
diff --git a/arch/sh/boards/board-sh7757lcr.c b/arch/sh/boards/board-sh7757lcr.c index 4f114d1cd019..25c5a932f9fe 100644 --- a/arch/sh/boards/board-sh7757lcr.c +++ b/arch/sh/boards/board-sh7757lcr.c | |||
@@ -77,7 +77,6 @@ static struct resource sh_eth0_resources[] = { | |||
77 | static struct sh_eth_plat_data sh7757_eth0_pdata = { | 77 | static struct sh_eth_plat_data sh7757_eth0_pdata = { |
78 | .phy = 1, | 78 | .phy = 1, |
79 | .edmac_endian = EDMAC_LITTLE_ENDIAN, | 79 | .edmac_endian = EDMAC_LITTLE_ENDIAN, |
80 | .register_type = SH_ETH_REG_FAST_SH4, | ||
81 | .set_mdio_gate = sh7757_eth_set_mdio_gate, | 80 | .set_mdio_gate = sh7757_eth_set_mdio_gate, |
82 | }; | 81 | }; |
83 | 82 | ||
@@ -106,7 +105,6 @@ static struct resource sh_eth1_resources[] = { | |||
106 | static struct sh_eth_plat_data sh7757_eth1_pdata = { | 105 | static struct sh_eth_plat_data sh7757_eth1_pdata = { |
107 | .phy = 1, | 106 | .phy = 1, |
108 | .edmac_endian = EDMAC_LITTLE_ENDIAN, | 107 | .edmac_endian = EDMAC_LITTLE_ENDIAN, |
109 | .register_type = SH_ETH_REG_FAST_SH4, | ||
110 | .set_mdio_gate = sh7757_eth_set_mdio_gate, | 108 | .set_mdio_gate = sh7757_eth_set_mdio_gate, |
111 | }; | 109 | }; |
112 | 110 | ||
@@ -151,7 +149,6 @@ static struct resource sh_eth_giga0_resources[] = { | |||
151 | static struct sh_eth_plat_data sh7757_eth_giga0_pdata = { | 149 | static struct sh_eth_plat_data sh7757_eth_giga0_pdata = { |
152 | .phy = 18, | 150 | .phy = 18, |
153 | .edmac_endian = EDMAC_LITTLE_ENDIAN, | 151 | .edmac_endian = EDMAC_LITTLE_ENDIAN, |
154 | .register_type = SH_ETH_REG_GIGABIT, | ||
155 | .set_mdio_gate = sh7757_eth_giga_set_mdio_gate, | 152 | .set_mdio_gate = sh7757_eth_giga_set_mdio_gate, |
156 | .phy_interface = PHY_INTERFACE_MODE_RGMII_ID, | 153 | .phy_interface = PHY_INTERFACE_MODE_RGMII_ID, |
157 | }; | 154 | }; |
@@ -186,7 +183,6 @@ static struct resource sh_eth_giga1_resources[] = { | |||
186 | static struct sh_eth_plat_data sh7757_eth_giga1_pdata = { | 183 | static struct sh_eth_plat_data sh7757_eth_giga1_pdata = { |
187 | .phy = 19, | 184 | .phy = 19, |
188 | .edmac_endian = EDMAC_LITTLE_ENDIAN, | 185 | .edmac_endian = EDMAC_LITTLE_ENDIAN, |
189 | .register_type = SH_ETH_REG_GIGABIT, | ||
190 | .set_mdio_gate = sh7757_eth_giga_set_mdio_gate, | 186 | .set_mdio_gate = sh7757_eth_giga_set_mdio_gate, |
191 | .phy_interface = PHY_INTERFACE_MODE_RGMII_ID, | 187 | .phy_interface = PHY_INTERFACE_MODE_RGMII_ID, |
192 | }; | 188 | }; |
diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c index 61fade0ffa96..a4f630f04ea3 100644 --- a/arch/sh/boards/mach-ecovec24/setup.c +++ b/arch/sh/boards/mach-ecovec24/setup.c | |||
@@ -159,7 +159,6 @@ static struct resource sh_eth_resources[] = { | |||
159 | static struct sh_eth_plat_data sh_eth_plat = { | 159 | static struct sh_eth_plat_data sh_eth_plat = { |
160 | .phy = 0x1f, /* SMSC LAN8700 */ | 160 | .phy = 0x1f, /* SMSC LAN8700 */ |
161 | .edmac_endian = EDMAC_LITTLE_ENDIAN, | 161 | .edmac_endian = EDMAC_LITTLE_ENDIAN, |
162 | .register_type = SH_ETH_REG_FAST_SH4, | ||
163 | .phy_interface = PHY_INTERFACE_MODE_MII, | 162 | .phy_interface = PHY_INTERFACE_MODE_MII, |
164 | .ether_link_active_low = 1 | 163 | .ether_link_active_low = 1 |
165 | }; | 164 | }; |
diff --git a/arch/sh/boards/mach-se/7724/setup.c b/arch/sh/boards/mach-se/7724/setup.c index aed4ca9ee1f5..e96e053f2609 100644 --- a/arch/sh/boards/mach-se/7724/setup.c +++ b/arch/sh/boards/mach-se/7724/setup.c | |||
@@ -377,7 +377,6 @@ 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 | .phy_interace = PHY_INTERFACE_MODE_MII, |
382 | }; | 381 | }; |
383 | 382 | ||
diff --git a/arch/sh/boards/mach-sh7763rdp/setup.c b/arch/sh/boards/mach-sh7763rdp/setup.c index 50ba481fa240..2c8fb04685d4 100644 --- a/arch/sh/boards/mach-sh7763rdp/setup.c +++ b/arch/sh/boards/mach-sh7763rdp/setup.c | |||
@@ -88,7 +88,6 @@ static struct resource sh_eth_resources[] = { | |||
88 | static struct sh_eth_plat_data sh7763_eth_pdata = { | 88 | static struct sh_eth_plat_data sh7763_eth_pdata = { |
89 | .phy = 1, | 89 | .phy = 1, |
90 | .edmac_endian = EDMAC_LITTLE_ENDIAN, | 90 | .edmac_endian = EDMAC_LITTLE_ENDIAN, |
91 | .register_type = SH_ETH_REG_GIGABIT, | ||
92 | .phy_interface = PHY_INTERFACE_MODE_MII, | 91 | .phy_interface = PHY_INTERFACE_MODE_MII, |
93 | }; | 92 | }; |
94 | 93 | ||
diff --git a/arch/sh/kernel/cpu/sh2/setup-sh7619.c b/arch/sh/kernel/cpu/sh2/setup-sh7619.c index bbadd4820336..19472817e274 100644 --- a/arch/sh/kernel/cpu/sh2/setup-sh7619.c +++ b/arch/sh/kernel/cpu/sh2/setup-sh7619.c | |||
@@ -114,7 +114,6 @@ static struct platform_device scif2_device = { | |||
114 | static struct sh_eth_plat_data eth_platform_data = { | 114 | static struct sh_eth_plat_data eth_platform_data = { |
115 | .phy = 1, | 115 | .phy = 1, |
116 | .edmac_endian = EDMAC_LITTLE_ENDIAN, | 116 | .edmac_endian = EDMAC_LITTLE_ENDIAN, |
117 | .register_type = SH_ETH_REG_FAST_SH3_SH2, | ||
118 | .phy_interace = PHY_INTERFACE_MODE_MII, | 117 | .phy_interace = PHY_INTERFACE_MODE_MII, |
119 | }; | 118 | }; |
120 | 119 | ||
diff --git a/drivers/net/ethernet/renesas/sh_eth.h b/drivers/net/ethernet/renesas/sh_eth.h index 1e7852810c8d..a0db02c63b11 100644 --- a/drivers/net/ethernet/renesas/sh_eth.h +++ b/drivers/net/ethernet/renesas/sh_eth.h | |||
@@ -157,6 +157,13 @@ enum { | |||
157 | SH_ETH_MAX_REGISTER_OFFSET, | 157 | SH_ETH_MAX_REGISTER_OFFSET, |
158 | }; | 158 | }; |
159 | 159 | ||
160 | enum { | ||
161 | SH_ETH_REG_GIGABIT, | ||
162 | SH_ETH_REG_FAST_RCAR, | ||
163 | SH_ETH_REG_FAST_SH4, | ||
164 | SH_ETH_REG_FAST_SH3_SH2 | ||
165 | }; | ||
166 | |||
160 | /* Driver's parameters */ | 167 | /* Driver's parameters */ |
161 | #if defined(CONFIG_CPU_SH4) || defined(CONFIG_ARCH_SHMOBILE) | 168 | #if defined(CONFIG_CPU_SH4) || defined(CONFIG_ARCH_SHMOBILE) |
162 | #define SH4_SKB_RX_ALIGN 32 | 169 | #define SH4_SKB_RX_ALIGN 32 |
diff --git a/include/linux/sh_eth.h b/include/linux/sh_eth.h index 6205eeba392b..90b5e30c2f22 100644 --- a/include/linux/sh_eth.h +++ b/include/linux/sh_eth.h | |||
@@ -5,17 +5,10 @@ | |||
5 | #include <linux/if_ether.h> | 5 | #include <linux/if_ether.h> |
6 | 6 | ||
7 | enum {EDMAC_LITTLE_ENDIAN, EDMAC_BIG_ENDIAN}; | 7 | enum {EDMAC_LITTLE_ENDIAN, EDMAC_BIG_ENDIAN}; |
8 | enum { | ||
9 | SH_ETH_REG_GIGABIT, | ||
10 | SH_ETH_REG_FAST_RCAR, | ||
11 | SH_ETH_REG_FAST_SH4, | ||
12 | SH_ETH_REG_FAST_SH3_SH2 | ||
13 | }; | ||
14 | 8 | ||
15 | struct sh_eth_plat_data { | 9 | struct sh_eth_plat_data { |
16 | int phy; | 10 | int phy; |
17 | int edmac_endian; | 11 | int edmac_endian; |
18 | int register_type; | ||
19 | phy_interface_t phy_interface; | 12 | phy_interface_t phy_interface; |
20 | void (*set_mdio_gate)(void *addr); | 13 | void (*set_mdio_gate)(void *addr); |
21 | 14 | ||