diff options
author | John Crispin <john@openwrt.org> | 2007-12-25 12:18:42 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2007-12-25 12:18:42 +0000 |
commit | 1fa388162bf2e63d2acc8c6f7250a757f6a40a31 (patch) | |
tree | e44e672a310a4ed0e39930a4b8818f2d8ea21379 /target/linux/ifxmips/files/arch/mips | |
parent | 3a974969775d0365bc7e12a6d4b23c2ad0f005d6 (diff) | |
download | mtk-20170518-1fa388162bf2e63d2acc8c6f7250a757f6a40a31.zip mtk-20170518-1fa388162bf2e63d2acc8c6f7250a757f6a40a31.tar.gz mtk-20170518-1fa388162bf2e63d2acc8c6f7250a757f6a40a31.tar.bz2 |
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.c | 9 |
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 017a8a6..8f3e166 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); } |