From 7e80accf90c60efd79f3d1c623877ff332b361d0 Mon Sep 17 00:00:00 2001 From: blogic Date: Tue, 25 Dec 2007 12:38:15 +0000 Subject: make ifxmips mii0 a platform device git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9923 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ifxmips/files/arch/mips/ifxmips/board.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (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 8f3e166eb..6df17d855 100644 --- a/target/linux/ifxmips/files/arch/mips/ifxmips/board.c +++ b/target/linux/ifxmips/files/arch/mips/ifxmips/board.c @@ -25,9 +25,9 @@ #include #include #include -#include #include #include +#include #include #include #include @@ -54,6 +54,14 @@ static struct platform_device ifxmips_gpio[] = }, }; +static struct platform_device ifxmips_mii[] = +{ + { + .id = 0, + .name = "ifxmips_mii0", + }, +}; + int __init ifxmips_init_devices(void) { /* @@ -70,6 +78,7 @@ int __init ifxmips_init_devices(void) ifxmips_devs[dev++] = ifxmips_led; ifxmips_devs[dev++] = ifxmips_gpio; + ifxmips_devs[dev++] = ifxmips_mii; return platform_add_devices(ifxmips_devs, dev); } -- cgit v1.2.3