diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2007-02-07 14:48:59 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-02-10 23:38:42 +0100 |
commit | 27a3bbaf4b1e23a3afbae4d9f72b51a36859f74a (patch) | |
tree | c6cf2b25d02ee2ad1cf290e9ac9719b301cbc77b /arch/mips/kernel/mips-mt.c | |
parent | libata: kill ATA_ENABLE_PATA (diff) | |
download | linux-27a3bbaf4b1e23a3afbae4d9f72b51a36859f74a.tar.xz linux-27a3bbaf4b1e23a3afbae4d9f72b51a36859f74a.zip |
[MIPS] VPE: Sprinkle device model code into code to make udev happier.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/mips-mt.c')
-rw-r--r-- | arch/mips/kernel/mips-mt.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/mips/kernel/mips-mt.c b/arch/mips/kernel/mips-mt.c index a32f6797353a..ba01800b6018 100644 --- a/arch/mips/kernel/mips-mt.c +++ b/arch/mips/kernel/mips-mt.c @@ -3,9 +3,11 @@ * Copyright (C) 2005 Mips Technologies, Inc */ +#include <linux/device.h> #include <linux/kernel.h> #include <linux/sched.h> #include <linux/cpumask.h> +#include <linux/module.h> #include <linux/interrupt.h> #include <linux/security.h> @@ -453,3 +455,20 @@ void mt_cflush_release(void) #endif /* CONFIG_MIPS_MT_SMTC */ /* FILL IN VSMP and AP/SP VERSIONS HERE */ } + +struct class *mt_class; + +static int __init mt_init(void) +{ + struct class *mtc; + + mtc = class_create(THIS_MODULE, "mt"); + if (IS_ERR(mtc)) + return PTR_ERR(mtc); + + mt_class = mtc; + + return 0; +} + +subsys_initcall(mt_init); |