sh: Fix up store queue code for subsys_interface changes.
Fixes up a number of build and section mismatch errors introduced by the subsys_interface conversion. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
@@ -337,7 +337,7 @@ static struct kobj_type ktype_percpu_entry = {
|
|||||||
.default_attrs = sq_sysfs_attrs,
|
.default_attrs = sq_sysfs_attrs,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __devinit sq_dev_add(struct device *dev)
|
static int sq_dev_add(struct device *dev, struct subsys_interface *sif)
|
||||||
{
|
{
|
||||||
unsigned int cpu = dev->id;
|
unsigned int cpu = dev->id;
|
||||||
struct kobject *kobj;
|
struct kobject *kobj;
|
||||||
@@ -355,7 +355,7 @@ static int __devinit sq_dev_add(struct device *dev)
|
|||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int __devexit sq_dev_remove(struct device *dev)
|
static int sq_dev_remove(struct device *dev, struct subsys_interface *sif)
|
||||||
{
|
{
|
||||||
unsigned int cpu = dev->id;
|
unsigned int cpu = dev->id;
|
||||||
struct kobject *kobj = sq_kobject[cpu];
|
struct kobject *kobj = sq_kobject[cpu];
|
||||||
@@ -365,10 +365,10 @@ static int __devexit sq_dev_remove(struct device *dev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static struct subsys_interface sq_interface = {
|
static struct subsys_interface sq_interface = {
|
||||||
.name = "sq"
|
.name = "sq",
|
||||||
.subsys = &cpu_subsys,
|
.subsys = &cpu_subsys,
|
||||||
.add_dev = sq_dev_add,
|
.add_dev = sq_dev_add,
|
||||||
.remove_dev = __devexit_p(sq_dev_remove),
|
.remove_dev = sq_dev_remove,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init sq_api_init(void)
|
static int __init sq_api_init(void)
|
||||||
|
|||||||
Reference in New Issue
Block a user