This platform device initialization code caused a crash at startup on the 
Danube reference boards. Since there is no driver using the platform device 
anymore, lets just remove this cruft.

Signed-off-by: Ithamar R. Adema <ithamar.ad...@team-embedded.nl>
---
 .../arch/mips/ifxmips/ar9/mach-easy50812.c         |    3 ---
 .../arch/mips/ifxmips/common/devices.c             |   13 -------------
 .../arch/mips/ifxmips/common/devices.h             |    1 -
 .../arch/mips/ifxmips/danube/mach-easy4010.c       |    2 --
 .../arch/mips/ifxmips/danube/mach-easy50712.c      |    2 --
 5 files changed, 0 insertions(+), 21 deletions(-)

diff --git 
a/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/ar9/mach-easy50812.c 
b/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/ar9/mach-easy50812.c
index 0baaba3..3f63a5d 100644
--- a/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/ar9/mach-easy50812.c
+++ b/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/ar9/mach-easy50812.c
@@ -60,9 +60,6 @@ easy50812_init(void)
 {
        ifxmips_register_gpio();
 
-       //printk("ifxmips_register_gpio_dev\n");
-       //ifxmips_register_gpio_dev();
-
        ifxmips_register_mtd(&easy50812_flash_data);
 
        ifxmips_register_leds(easy50812_leds, ARRAY_SIZE(easy50812_leds));
diff --git 
a/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/common/devices.c 
b/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/common/devices.c
index dcd2346..dade30c 100644
--- a/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/common/devices.c
+++ b/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/common/devices.c
@@ -20,19 +20,6 @@
 #include <ifxmips.h>
 #include <ifxmips_irq.h>
 
-/* gpiodev */
-static struct platform_device ifxmips_gpio_dev =
-{
-       .name                   = "GPIODEV",
-       .num_resources  = 1,
-};
-
-void __init
-ifxmips_register_gpio_dev(void)
-{
-       platform_device_register(&ifxmips_gpio_dev);
-}
-
 /* gpio leds */
 #ifdef CONFIG_LEDS_GPIO
 static struct gpio_led_platform_data ifxmips_gpio_led_data;
diff --git 
a/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/common/devices.h 
b/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/common/devices.h
index 31fac26..a3a932c 100644
--- a/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/common/devices.h
+++ b/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/common/devices.h
@@ -3,7 +3,6 @@
 
 #include <ifxmips_platform.h>
 
-void __init ifxmips_register_gpio_dev(void);
 void __init ifxmips_register_gpio_leds(struct gpio_led *leds, int cnt);
 void __init ifxmips_register_leds(struct gpio_led *leds, int cnt);
 void __init ifxmips_register_mtd(struct physmap_flash_data *pdata);
diff --git 
a/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/danube/mach-easy4010.c 
b/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/danube/mach-easy4010.c
index afb0b89..c18f9ac 100644
--- a/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/danube/mach-easy4010.c
+++ b/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/danube/mach-easy4010.c
@@ -61,8 +61,6 @@ easy4010_init(void)
 {
        ifxmips_register_gpio();
 
-       ifxmips_register_gpio_dev();
-
        ifxmips_register_mtd(&easy4010_flash_data);
 
        ifxmips_register_leds(easy4010_leds, ARRAY_SIZE(easy4010_leds));
diff --git 
a/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/danube/mach-easy50712.c 
b/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/danube/mach-easy50712.c
index c7ee7db..4215902 100644
--- 
a/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/danube/mach-easy50712.c
+++ 
b/target/linux/ifxmips/files-2.6.33/arch/mips/ifxmips/danube/mach-easy50712.c
@@ -61,8 +61,6 @@ easy50712_init(void)
 {
        ifxmips_register_gpio();
 
-       ifxmips_register_gpio_dev();
-
        ifxmips_register_mtd(&easy50712_flash_data);
 
        ifxmips_register_leds(easy50712_leds, ARRAY_SIZE(easy50712_leds));
-- 
1.7.0.4

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to