Skip to content

Commit 8d3214c

Browse files
Sergei Shtylyovdavem330
authored andcommitted
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>
1 parent a3153d8 commit 8d3214c

10 files changed

Lines changed: 7 additions & 18 deletions

File tree

‎arch/arm/mach-shmobile/board-armadillo800eva.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,6 @@ static struct platform_device usbhsf_device = {
358358
static struct sh_eth_plat_data sh_eth_platdata = {
359359
.phy = 0x00, /* LAN8710A */
360360
.edmac_endian = EDMAC_LITTLE_ENDIAN,
361-
.register_type = SH_ETH_REG_GIGABIT,
362361
.phy_interface = PHY_INTERFACE_MODE_MII,
363362
};
364363

‎arch/arm/mach-shmobile/board-bockw.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ static struct sh_mobile_sdhi_info sdhi0_info = {
8989
static struct sh_eth_plat_data ether_platform_data __initdata = {
9090
.phy = 0x01,
9191
.edmac_endian = EDMAC_LITTLE_ENDIAN,
92-
.register_type = SH_ETH_REG_FAST_RCAR,
9392
.phy_interface = PHY_INTERFACE_MODE_RMII,
9493
/*
9594
* Although the LINK signal is available on the board, it's connected to

‎arch/sh/boards/board-espt.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ static struct resource sh_eth_resources[] = {
8080
static struct sh_eth_plat_data sh7763_eth_pdata = {
8181
.phy = 0,
8282
.edmac_endian = EDMAC_LITTLE_ENDIAN,
83-
.register_type = SH_ETH_REG_GIGABIT,
8483
.phy_interface = PHY_INTERFACE_MODE_MII,
8584
};
8685

‎arch/sh/boards/board-sh7757lcr.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ static struct resource sh_eth0_resources[] = {
7777
static struct sh_eth_plat_data sh7757_eth0_pdata = {
7878
.phy = 1,
7979
.edmac_endian = EDMAC_LITTLE_ENDIAN,
80-
.register_type = SH_ETH_REG_FAST_SH4,
8180
.set_mdio_gate = sh7757_eth_set_mdio_gate,
8281
};
8382

@@ -106,7 +105,6 @@ static struct resource sh_eth1_resources[] = {
106105
static struct sh_eth_plat_data sh7757_eth1_pdata = {
107106
.phy = 1,
108107
.edmac_endian = EDMAC_LITTLE_ENDIAN,
109-
.register_type = SH_ETH_REG_FAST_SH4,
110108
.set_mdio_gate = sh7757_eth_set_mdio_gate,
111109
};
112110

@@ -151,7 +149,6 @@ static struct resource sh_eth_giga0_resources[] = {
151149
static struct sh_eth_plat_data sh7757_eth_giga0_pdata = {
152150
.phy = 18,
153151
.edmac_endian = EDMAC_LITTLE_ENDIAN,
154-
.register_type = SH_ETH_REG_GIGABIT,
155152
.set_mdio_gate = sh7757_eth_giga_set_mdio_gate,
156153
.phy_interface = PHY_INTERFACE_MODE_RGMII_ID,
157154
};
@@ -186,7 +183,6 @@ static struct resource sh_eth_giga1_resources[] = {
186183
static struct sh_eth_plat_data sh7757_eth_giga1_pdata = {
187184
.phy = 19,
188185
.edmac_endian = EDMAC_LITTLE_ENDIAN,
189-
.register_type = SH_ETH_REG_GIGABIT,
190186
.set_mdio_gate = sh7757_eth_giga_set_mdio_gate,
191187
.phy_interface = PHY_INTERFACE_MODE_RGMII_ID,
192188
};

‎arch/sh/boards/mach-ecovec24/setup.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ static struct resource sh_eth_resources[] = {
159159
static struct sh_eth_plat_data sh_eth_plat = {
160160
.phy = 0x1f, /* SMSC LAN8700 */
161161
.edmac_endian = EDMAC_LITTLE_ENDIAN,
162-
.register_type = SH_ETH_REG_FAST_SH4,
163162
.phy_interface = PHY_INTERFACE_MODE_MII,
164163
.ether_link_active_low = 1
165164
};

‎arch/sh/boards/mach-se/7724/setup.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,6 @@ static struct resource sh_eth_resources[] = {
377377
static struct sh_eth_plat_data sh_eth_plat = {
378378
.phy = 0x1f, /* SMSC LAN8187 */
379379
.edmac_endian = EDMAC_LITTLE_ENDIAN,
380-
.register_type = SH_ETH_REG_FAST_SH4,
381380
.phy_interace = PHY_INTERFACE_MODE_MII,
382381
};
383382

‎arch/sh/boards/mach-sh7763rdp/setup.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ static struct resource sh_eth_resources[] = {
8888
static struct sh_eth_plat_data sh7763_eth_pdata = {
8989
.phy = 1,
9090
.edmac_endian = EDMAC_LITTLE_ENDIAN,
91-
.register_type = SH_ETH_REG_GIGABIT,
9291
.phy_interface = PHY_INTERFACE_MODE_MII,
9392
};
9493

‎arch/sh/kernel/cpu/sh2/setup-sh7619.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ static struct platform_device scif2_device = {
114114
static struct sh_eth_plat_data eth_platform_data = {
115115
.phy = 1,
116116
.edmac_endian = EDMAC_LITTLE_ENDIAN,
117-
.register_type = SH_ETH_REG_FAST_SH3_SH2,
118117
.phy_interace = PHY_INTERFACE_MODE_MII,
119118
};
120119

‎drivers/net/ethernet/renesas/sh_eth.h‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,13 @@ enum {
157157
SH_ETH_MAX_REGISTER_OFFSET,
158158
};
159159

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+
160167
/* Driver's parameters */
161168
#if defined(CONFIG_CPU_SH4) || defined(CONFIG_ARCH_SHMOBILE)
162169
#define SH4_SKB_RX_ALIGN 32

‎include/linux/sh_eth.h‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,10 @@
55
#include <linux/if_ether.h>
66

77
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-
};
148

159
struct sh_eth_plat_data {
1610
int phy;
1711
int edmac_endian;
18-
int register_type;
1912
phy_interface_t phy_interface;
2013
void (*set_mdio_gate)(void *addr);
2114

0 commit comments

Comments
 (0)