aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ifxmips/files/arch/mips
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2007-12-25 12:18:42 +0000
committerJohn Crispin <john@openwrt.org>2007-12-25 12:18:42 +0000
commit1fa388162bf2e63d2acc8c6f7250a757f6a40a31 (patch)
treee44e672a310a4ed0e39930a4b8818f2d8ea21379 /target/linux/ifxmips/files/arch/mips
parent3a974969775d0365bc7e12a6d4b23c2ad0f005d6 (diff)
downloadupstream-1fa388162bf2e63d2acc8c6f7250a757f6a40a31.tar.gz
upstream-1fa388162bf2e63d2acc8c6f7250a757f6a40a31.tar.bz2
upstream-1fa388162bf2e63d2acc8c6f7250a757f6a40a31.zip
make ifxmips gpio a platform device
SVN-Revision: 9922
Diffstat (limited to 'target/linux/ifxmips/files/arch/mips')
-rw-r--r--target/linux/ifxmips/files/arch/mips/ifxmips/board.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/target/linux/ifxmips/files/arch/mips/ifxmips/board.c b/target/linux/ifxmips/files/arch/mips/ifxmips/board.c
index 017a8a62b7..8f3e166eb2 100644
--- a/target/linux/ifxmips/files/arch/mips/ifxmips/board.c
+++ b/target/linux/ifxmips/files/arch/mips/ifxmips/board.c
@@ -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);
}