ar71xx: make ag71xx_mdio_platform_data visible
authorGabor Juhos <juhosg@openwrt.org>
Tue, 17 Dec 2013 22:14:07 +0000 (22:14 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Tue, 17 Dec 2013 22:14:07 +0000 (22:14 +0000)
This enables us to modify the ag71xx_mdio_platform_data from within the
board support files.

Signed-off-by: Felix Kaechele <heffer@fedoraproject.org>
Patchwork: http://patchwork.openwrt.org/patch/4613/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 39126

target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c
target/linux/ar71xx/files/arch/mips/ath79/dev-eth.h

index 4a2b1db7fb13ba2145eaf1bad8b9771466f3e7da..742218bb32ba05edd7abc748fe8a3adb889137b8 100644 (file)
@@ -39,7 +39,7 @@ static struct resource ath79_mdio0_resources[] = {
        }
 };
 
-static struct ag71xx_mdio_platform_data ath79_mdio0_data;
+struct ag71xx_mdio_platform_data ath79_mdio0_data;
 
 struct platform_device ath79_mdio0_device = {
        .name           = "ag71xx-mdio",
@@ -60,7 +60,7 @@ static struct resource ath79_mdio1_resources[] = {
        }
 };
 
-static struct ag71xx_mdio_platform_data ath79_mdio1_data;
+struct ag71xx_mdio_platform_data ath79_mdio1_data;
 
 struct platform_device ath79_mdio1_device = {
        .name           = "ag71xx-mdio",
index bc608dac07c06b34c08ceea432141710e647ad20..ff26ec48519193a459466aa5ace66f3c2504b1b5 100644 (file)
@@ -39,6 +39,8 @@ void ath79_register_eth(unsigned int id);
 
 extern struct ag71xx_switch_platform_data ath79_switch_data;
 
+extern struct ag71xx_mdio_platform_data ath79_mdio0_data;
+extern struct ag71xx_mdio_platform_data ath79_mdio1_data;
 extern struct platform_device ath79_mdio0_device;
 extern struct platform_device ath79_mdio1_device;
 void ath79_register_mdio(unsigned int id, u32 phy_mask);