Commit 9e6f31a9 authored by Dongsheng.wang@freescale.com's avatar Dongsheng.wang@freescale.com Committed by Scott Wood

powerpc/mpic: create mpic subsystem object

Register a mpic subsystem at /sys/devices/system/
Signed-off-by: default avatarWang Dongsheng <dongsheng.wang@freescale.com>
Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
parent 36ca09be
...@@ -339,6 +339,8 @@ struct mpic ...@@ -339,6 +339,8 @@ struct mpic
#endif #endif
}; };
extern struct bus_type mpic_subsys;
/* /*
* MPIC flags (passed to mpic_alloc) * MPIC flags (passed to mpic_alloc)
* *
......
...@@ -48,6 +48,12 @@ ...@@ -48,6 +48,12 @@
#define DBG(fmt...) #define DBG(fmt...)
#endif #endif
struct bus_type mpic_subsys = {
.name = "mpic",
.dev_name = "mpic",
};
EXPORT_SYMBOL_GPL(mpic_subsys);
static struct mpic *mpics; static struct mpic *mpics;
static struct mpic *mpic_primary; static struct mpic *mpic_primary;
static DEFINE_RAW_SPINLOCK(mpic_lock); static DEFINE_RAW_SPINLOCK(mpic_lock);
...@@ -2035,6 +2041,8 @@ static struct syscore_ops mpic_syscore_ops = { ...@@ -2035,6 +2041,8 @@ static struct syscore_ops mpic_syscore_ops = {
static int mpic_init_sys(void) static int mpic_init_sys(void)
{ {
register_syscore_ops(&mpic_syscore_ops); register_syscore_ops(&mpic_syscore_ops);
subsys_system_register(&mpic_subsys, NULL);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment