diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-02-04 13:02:45 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-02-07 10:51:47 -0500 |
commit | 575e93f7b5e622edfd031ebda660f5f3064f39a3 (patch) | |
tree | 17cede934139d91fbf58cfb5cf7dacac6a58ff6c /arch/arm/plat-orion/include | |
parent | net: phy: Allow pre-declaration of MDIO devices (diff) | |
download | linux-575e93f7b5e622edfd031ebda660f5f3064f39a3.tar.gz linux-575e93f7b5e622edfd031ebda660f5f3064f39a3.tar.bz2 linux-575e93f7b5e622edfd031ebda660f5f3064f39a3.zip |
ARM: orion: Register DSA switch as a MDIO device
Utilize the ability to pass board specific MDIO bus information towards a
particular MDIO device thus allowing us to provide the per-port switch layout
to the Marvell 88E6XXX switch driver.
Since we would end-up with conflicting registration paths, do not register the
"dsa" platform device anymore.
Note that the MDIO devices registered by code in net/dsa/dsa2.c does not
parse a dsa_platform_data, but directly take a dsa_chip_data (specific
to a single switch chip), so we update the different call sites to pass
this structure down to orion_ge00_switch_init().
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/arm/plat-orion/include')
-rw-r--r-- | arch/arm/plat-orion/include/plat/common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/plat-orion/include/plat/common.h b/arch/arm/plat-orion/include/plat/common.h index 9347f3c58a6d..3647d3b33c20 100644 --- a/arch/arm/plat-orion/include/plat/common.h +++ b/arch/arm/plat-orion/include/plat/common.h @@ -12,7 +12,7 @@ #include <linux/mv643xx_eth.h> #include <linux/platform_data/usb-ehci-orion.h> -struct dsa_platform_data; +struct dsa_chip_data; struct mv_sata_platform_data; void __init orion_uart0_init(void __iomem *membase, @@ -57,7 +57,7 @@ void __init orion_ge11_init(struct mv643xx_eth_platform_data *eth_data, unsigned long mapbase, unsigned long irq); -void __init orion_ge00_switch_init(struct dsa_platform_data *d); +void __init orion_ge00_switch_init(struct dsa_chip_data *d); void __init orion_i2c_init(unsigned long mapbase, unsigned long irq, |