summaryrefslogtreecommitdiff
path: root/target/linux/ifxmips/files/arch/mips
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2007-12-25 12:38:15 +0000
committerJohn Crispin <john@openwrt.org>2007-12-25 12:38:15 +0000
commitc09f909556e414e50e9da07c4f17c0081c78bdd7 (patch)
tree3a04ecb241d82dc9487637ee41e9e6f9046a27e9 /target/linux/ifxmips/files/arch/mips
parent1fa388162bf2e63d2acc8c6f7250a757f6a40a31 (diff)
downloadmtk-20170518-c09f909556e414e50e9da07c4f17c0081c78bdd7.zip
mtk-20170518-c09f909556e414e50e9da07c4f17c0081c78bdd7.tar.gz
mtk-20170518-c09f909556e414e50e9da07c4f17c0081c78bdd7.tar.bz2
make ifxmips mii0 a platform device
SVN-Revision: 9923
Diffstat (limited to 'target/linux/ifxmips/files/arch/mips')
-rw-r--r--target/linux/ifxmips/files/arch/mips/ifxmips/board.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/target/linux/ifxmips/files/arch/mips/ifxmips/board.c b/target/linux/ifxmips/files/arch/mips/ifxmips/board.c
index 8f3e166..6df17d8 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 <linux/types.h>
#include <linux/string.h>
#include <linux/mtd/physmap.h>
-#include <linux/platform_device.h>
#include <linux/kernel.h>
#include <linux/reboot.h>
+#include <linux/platform_device.h>
#include <asm/bootinfo.h>
#include <asm/reboot.h>
#include <asm/time.h>
@@ -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);
}