]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
sh_eth: remove sh_eth_plat_data::edmac_endian
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Thu, 4 Jan 2018 21:26:46 +0000 (00:26 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jan 2018 19:10:33 +0000 (14:10 -0500)
Since the commit 888cc8c20cf ("sh_eth: remove EDMAC_BIG_ENDIAN") (geez,
I didn't realize that was 2 years ago!) the initializers in the SuperH
platform code for the 'sh_eth_plat_data::edmac_endian' stopped to matter,
so we can remove that field for good (not sure if  it  was ever useful --
SH7786 Ether has been reported  to have the same EDMAC descriptor/register
endiannes as configured for the SuperH CPU)...

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sh/boards/board-espt.c
arch/sh/boards/board-sh7757lcr.c
arch/sh/boards/mach-ecovec24/setup.c
arch/sh/boards/mach-se/7724/setup.c
arch/sh/boards/mach-sh7763rdp/setup.c
arch/sh/kernel/cpu/sh2/setup-sh7619.c
include/linux/sh_eth.h

index 7291e2f11a4748e64f22475b6b1be2efc8fba304..4d6be53058d63953e484a6c2a744b7950e88eb85 100644 (file)
@@ -79,7 +79,6 @@ static struct resource sh_eth_resources[] = {
 
 static struct sh_eth_plat_data sh7763_eth_pdata = {
        .phy = 0,
-       .edmac_endian = EDMAC_LITTLE_ENDIAN,
        .phy_interface = PHY_INTERFACE_MODE_MII,
 };
 
index 0104c8199c48fe414d18924b449725470ef77dfa..1bde08dc067dca20b40e7367ed22040cfee0c824 100644 (file)
@@ -76,7 +76,6 @@ static struct resource sh_eth0_resources[] = {
 
 static struct sh_eth_plat_data sh7757_eth0_pdata = {
        .phy = 1,
-       .edmac_endian = EDMAC_LITTLE_ENDIAN,
        .set_mdio_gate = sh7757_eth_set_mdio_gate,
 };
 
@@ -104,7 +103,6 @@ static struct resource sh_eth1_resources[] = {
 
 static struct sh_eth_plat_data sh7757_eth1_pdata = {
        .phy = 1,
-       .edmac_endian = EDMAC_LITTLE_ENDIAN,
        .set_mdio_gate = sh7757_eth_set_mdio_gate,
 };
 
@@ -148,7 +146,6 @@ static struct resource sh_eth_giga0_resources[] = {
 
 static struct sh_eth_plat_data sh7757_eth_giga0_pdata = {
        .phy = 18,
-       .edmac_endian = EDMAC_LITTLE_ENDIAN,
        .set_mdio_gate = sh7757_eth_giga_set_mdio_gate,
        .phy_interface = PHY_INTERFACE_MODE_RGMII_ID,
 };
@@ -182,7 +179,6 @@ static struct resource sh_eth_giga1_resources[] = {
 
 static struct sh_eth_plat_data sh7757_eth_giga1_pdata = {
        .phy = 19,
-       .edmac_endian = EDMAC_LITTLE_ENDIAN,
        .set_mdio_gate = sh7757_eth_giga_set_mdio_gate,
        .phy_interface = PHY_INTERFACE_MODE_RGMII_ID,
 };
index 1faf6cb93dcb5659f1765c4072b93fe8297c0efc..6f929abe0b50f0a157d5cd04fb04cd0f575b59cf 100644 (file)
@@ -159,7 +159,6 @@ static struct resource sh_eth_resources[] = {
 
 static struct sh_eth_plat_data sh_eth_plat = {
        .phy = 0x1f, /* SMSC LAN8700 */
-       .edmac_endian = EDMAC_LITTLE_ENDIAN,
        .phy_interface = PHY_INTERFACE_MODE_MII,
        .ether_link_active_low = 1
 };
index f1fecd395679aec09d9aaf3bf44d6b695ab8bf82..2559525556563b6cd32c7dd94e51fe1fbf008950 100644 (file)
@@ -374,7 +374,6 @@ static struct resource sh_eth_resources[] = {
 
 static struct sh_eth_plat_data sh_eth_plat = {
        .phy = 0x1f, /* SMSC LAN8187 */
-       .edmac_endian = EDMAC_LITTLE_ENDIAN,
        .phy_interface = PHY_INTERFACE_MODE_MII,
 };
 
index 2c8fb04685d4c05cf2aa2954c615290505f200b8..6e62686b81b145b1a11707969fe80988918dfd55 100644 (file)
@@ -87,7 +87,6 @@ static struct resource sh_eth_resources[] = {
 
 static struct sh_eth_plat_data sh7763_eth_pdata = {
        .phy = 1,
-       .edmac_endian = EDMAC_LITTLE_ENDIAN,
        .phy_interface = PHY_INTERFACE_MODE_MII,
 };
 
index 95796ad00fbefa282c67b28e39c96ae1b6495bb8..d08db08dec38127563175f24b2ee8bd384165446 100644 (file)
@@ -122,7 +122,6 @@ static struct platform_device scif2_device = {
 
 static struct sh_eth_plat_data eth_platform_data = {
        .phy            = 1,
-       .edmac_endian   = EDMAC_LITTLE_ENDIAN,
        .phy_interface  = PHY_INTERFACE_MODE_MII,
 };
 
index ff3642d267f7f3311a063e2b1e2b2ebd946686e8..dd5d693237010576af5671b7734078619d3ea103 100644 (file)
@@ -5,12 +5,9 @@
 #include <linux/phy.h>
 #include <linux/if_ether.h>
 
-enum {EDMAC_LITTLE_ENDIAN};
-
 struct sh_eth_plat_data {
        int phy;
        int phy_irq;
-       int edmac_endian;
        phy_interface_t phy_interface;
        void (*set_mdio_gate)(void *addr);