make ifxmips gpio a platform device
[openwrt/svn-archive/archive.git] / target / linux / ifxmips / files / arch / mips / ifxmips / board.c
index 017a8a62b7fd5f481129f4b33c5c00917dfe593e..8f3e166eb26ea30b04ab2b257ec3b67efb968817 100644 (file)
@@ -46,6 +46,14 @@ static struct platform_device ifxmips_led[] =
        },
 };
 
+static struct platform_device ifxmips_gpio[] =
+{
+       {
+               .id = 0,
+               .name = "ifxmips_gpio",
+       },
+};
+
 int __init ifxmips_init_devices(void)
 {
        /*
@@ -61,6 +69,7 @@ int __init ifxmips_init_devices(void)
        /* the following devices are generic for all targets */
 
        ifxmips_devs[dev++] = ifxmips_led;
+       ifxmips_devs[dev++] = ifxmips_gpio;
 
        return platform_add_devices(ifxmips_devs, dev);
 }