mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[MIPS] VPE: Sprinkle device model code into code to make udev happier.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
66efc5a7e3
commit
27a3bbaf4b
3 changed files with 43 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue