atheros: v3.18: remove eth platform device unused field
authorFelix Fietkau <nbd@openwrt.org>
Fri, 13 Mar 2015 02:58:37 +0000 (02:58 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 13 Mar 2015 02:58:37 +0000 (02:58 +0000)
Ethernet controller driver don't use boarddata directly, so remove
corresponding field from its platform device structure.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44710

target/linux/atheros/patches-3.18/100-board.patch
target/linux/atheros/patches-3.18/102-ar5312_gpio.patch
target/linux/atheros/patches-3.18/103-ar2315_gpio.patch
target/linux/atheros/patches-3.18/105-ar2315_pci.patch

index e86bb4876dbca156ce2f2899bdc820121394a618..abf19641bc27a7efc78dba6bfebc100f5cea54a4 100644 (file)
 +}
 --- /dev/null
 +++ b/arch/mips/include/asm/mach-ath25/ath25_platform.h
-@@ -0,0 +1,85 @@
+@@ -0,0 +1,84 @@
 +#ifndef __ASM_MACH_ATH25_PLATFORM_H
 +#define __ASM_MACH_ATH25_PLATFORM_H
 +
 +      void (*reset_clear)(u32);
 +      u32 reset_mac;
 +      u32 reset_phy;
-+      struct ar231x_board_config *config;
 +      char *macaddr;
 +};
 +
 +#endif        /* __ASM_MACH_ATH25_AR5312_REGS_H */
 --- /dev/null
 +++ b/arch/mips/ath25/ar5312.c
-@@ -0,0 +1,476 @@
+@@ -0,0 +1,474 @@
 +/*
 + * This file is subject to the terms and conditions of the GNU General Public
 + * License.  See the file "COPYING" in the main directory of this archive
 +      .reset_clear = ar5312_device_reset_clear,
 +      .reset_mac = AR5312_RESET_ENET0,
 +      .reset_phy = AR5312_RESET_EPHY0,
-+      .config = &ar231x_board,
 +};
 +
 +static struct ar231x_eth ar5312_eth1_data = {
 +      .reset_clear = ar5312_device_reset_clear,
 +      .reset_mac = AR5312_RESET_ENET1,
 +      .reset_phy = AR5312_RESET_EPHY1,
-+      .config = &ar231x_board,
 +};
 +
 +static struct platform_device ar5312_physmap_flash = {
 +
 --- /dev/null
 +++ b/arch/mips/ath25/ar2315.c
-@@ -0,0 +1,431 @@
+@@ -0,0 +1,430 @@
 +/*
 + * This file is subject to the terms and conditions of the GNU General Public
 + * License.  See the file "COPYING" in the main directory of this archive
 +      .reset_clear = ar2315_device_reset_clear,
 +      .reset_mac = AR2315_RESET_ENET0,
 +      .reset_phy = AR2315_RESET_EPHY0,
-+      .config = &ar231x_board,
 +};
 +
 +static struct resource ar2315_spiflash_res[] = {
index 2860c541b2b45e9f5a84a7e33583a9a988cefd1c..8bc9689fbf40b836d3fa7094df608579239d64b4 100644 (file)
@@ -10,7 +10,7 @@
  config SOC_AR2315
 --- a/arch/mips/ath25/ar5312.c
 +++ b/arch/mips/ath25/ar5312.c
-@@ -192,6 +192,22 @@ static struct platform_device ar5312_phy
+@@ -190,6 +190,22 @@ static struct platform_device ar5312_phy
        .num_resources = 1,
  };
  
@@ -33,7 +33,7 @@
  #ifdef CONFIG_LEDS_GPIO
  static struct gpio_led ar5312_leds[] = {
        { .name = "wlan", .gpio = 0, .active_low = 1, },
-@@ -282,6 +298,8 @@ int __init ar5312_init_devices(void)
+@@ -280,6 +296,8 @@ int __init ar5312_init_devices(void)
  
        platform_device_register(&ar5312_physmap_flash);
  
index cd3baf5c1530ca092728209a8810862d60f3e91f..9b55d378f8f407afa0b094788f443da1a070cb38 100644 (file)
@@ -8,7 +8,7 @@
        default y
 --- a/arch/mips/ath25/ar2315.c
 +++ b/arch/mips/ath25/ar2315.c
-@@ -212,6 +212,34 @@ static struct platform_device ar2315_wdt
+@@ -211,6 +211,34 @@ static struct platform_device ar2315_wdt
        .num_resources = ARRAY_SIZE(ar2315_wdt_res)
  };
  
@@ -43,7 +43,7 @@
  /*
   * NB: We use mapping size that is larger than the actual flash size,
   * but this shouldn't be a problem here, because the flash will simply
-@@ -277,6 +305,7 @@ ar2315_init_devices(void)
+@@ -276,6 +304,7 @@ ar2315_init_devices(void)
        ar231x_find_config(ar2315_flash_limit());
        ar2315_eth_data.macaddr = ar231x_board.config->enet0_mac;
  
index 6e398dc34e5e22dbab4c814269d8a018865a6372..d86e9b79013e6355e2645c6e1b407da5cdf20467 100644 (file)
        else if (pending & CAUSEF_IP2)
                do_IRQ(AR2315_IRQ_MISC_INTRS);
        else if (pending & CAUSEF_IP7)
-@@ -458,3 +462,18 @@ ar2315_plat_setup(void)
+@@ -457,3 +461,18 @@ ar2315_plat_setup(void)
        ar231x_serial_setup(AR2315_UART0, AR2315_MISC_IRQ_UART0,
                            ar2315_apb_frequency());
  }