summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-orion5x/wnr854t-setup.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-09-05 16:18:45 +0200
committerGregory CLEMENT <gregory.clement@free-electrons.com>2016-09-14 16:36:13 +0200
commitfe158a17c1e0d477f08990f426f30e13eb3c8851 (patch)
tree8b034931e9de00ab7293e2d52057d882465de464 /arch/arm/mach-orion5x/wnr854t-setup.c
parent93a753bdc1b77e01721c709761fb796a33455a53 (diff)
downloadtalos-obmc-linux-fe158a17c1e0d477f08990f426f30e13eb3c8851.tar.gz
talos-obmc-linux-fe158a17c1e0d477f08990f426f30e13eb3c8851.zip
ARM: orion: simplify orion_ge00_switch_init
One of the last users of NO_IRQ on ARM is the switch initialization code on orion5x, which sometimes passes a GPIO based IRQ number. However, the driver doesn't actually use this number, and according to Andrew Lunn never will do it for non-DT based machines, so we can simply drop the irq argument. Simplifying it further, we can also drop the static platform_device and instead call platform_device_register_data(), which in turn lets us mark the platform_data structures as __initdata and slightly reduce the memory consumption. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Diffstat (limited to 'arch/arm/mach-orion5x/wnr854t-setup.c')
-rw-r--r--arch/arm/mach-orion5x/wnr854t-setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-orion5x/wnr854t-setup.c b/arch/arm/mach-orion5x/wnr854t-setup.c
index 4e1e5c8f6111..4dbcdbe1de7c 100644
--- a/arch/arm/mach-orion5x/wnr854t-setup.c
+++ b/arch/arm/mach-orion5x/wnr854t-setup.c
@@ -106,7 +106,7 @@ static struct dsa_chip_data wnr854t_switch_chip_data = {
.port_names[7] = "lan2",
};
-static struct dsa_platform_data wnr854t_switch_plat_data = {
+static struct dsa_platform_data __initdata wnr854t_switch_plat_data = {
.nr_chips = 1,
.chip = &wnr854t_switch_chip_data,
};
@@ -124,7 +124,7 @@ static void __init wnr854t_init(void)
* Configure peripherals.
*/
orion5x_eth_init(&wnr854t_eth_data);
- orion5x_eth_switch_init(&wnr854t_switch_plat_data, NO_IRQ);
+ orion5x_eth_switch_init(&wnr854t_switch_plat_data);
orion5x_uart0_init();
mvebu_mbus_add_window_by_id(ORION_MBUS_DEVBUS_BOOT_TARGET,
OpenPOWER on IntegriCloud