From 87ede6478bd9ab2b06f677b9f4311bb684ca0bd3 Mon Sep 17 00:00:00 2001 From: blogic Date: Tue, 25 Dec 2007 12:18:42 +0000 Subject: make ifxmips gpio a platform device git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9922 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ifxmips/files/arch/mips/ifxmips/board.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'target/linux/ifxmips/files/arch/mips') diff --git a/target/linux/ifxmips/files/arch/mips/ifxmips/board.c b/target/linux/ifxmips/files/arch/mips/ifxmips/board.c index 017a8a62b..8f3e166eb 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); } -- cgit v1.2.3