diff options
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 @@ | |||
3 | * Copyright (C) 2005 Mips Technologies, Inc | 3 | * Copyright (C) 2005 Mips Technologies, Inc |
4 | */ | 4 | */ |
5 | 5 | ||
6 | #include <linux/device.h> | ||
6 | #include <linux/kernel.h> | 7 | #include <linux/kernel.h> |
7 | #include <linux/sched.h> | 8 | #include <linux/sched.h> |
8 | #include <linux/cpumask.h> | 9 | #include <linux/cpumask.h> |
10 | #include <linux/module.h> | ||
9 | #include <linux/interrupt.h> | 11 | #include <linux/interrupt.h> |
10 | #include <linux/security.h> | 12 | #include <linux/security.h> |
11 | 13 | ||
@@ -453,3 +455,20 @@ void mt_cflush_release(void) | |||
453 | #endif /* CONFIG_MIPS_MT_SMTC */ | 455 | #endif /* CONFIG_MIPS_MT_SMTC */ |
454 | /* FILL IN VSMP and AP/SP VERSIONS HERE */ | 456 | /* FILL IN VSMP and AP/SP VERSIONS HERE */ |
455 | } | 457 | } |
458 | |||
459 | struct class *mt_class; | ||
460 | |||
461 | static int __init mt_init(void) | ||
462 | { | ||
463 | struct class *mtc; | ||
464 | |||
465 | mtc = class_create(THIS_MODULE, "mt"); | ||
466 | if (IS_ERR(mtc)) | ||
467 | return PTR_ERR(mtc); | ||
468 | |||
469 | mt_class = mtc; | ||
470 | |||
471 | return 0; | ||
472 | } | ||
473 | |||
474 | subsys_initcall(mt_init); | ||