Commit fcd6f762 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Benjamin Herrenschmidt

driver-core: remove legacy iSeries hack

The PowerPC legacy iSeries plateform is being removed along with the
"one looney iseries driver", so this code can now be removed as well.

cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent c17a9d4c
...@@ -123,36 +123,6 @@ void driver_remove_file(struct device_driver *drv, ...@@ -123,36 +123,6 @@ void driver_remove_file(struct device_driver *drv,
} }
EXPORT_SYMBOL_GPL(driver_remove_file); EXPORT_SYMBOL_GPL(driver_remove_file);
/**
* driver_add_kobj - add a kobject below the specified driver
* @drv: requesting device driver
* @kobj: kobject to add below this driver
* @fmt: format string that names the kobject
*
* You really don't want to do this, this is only here due to one looney
* iseries driver, go poke those developers if you are annoyed about
* this...
*/
int driver_add_kobj(struct device_driver *drv, struct kobject *kobj,
const char *fmt, ...)
{
va_list args;
char *name;
int ret;
va_start(args, fmt);
name = kvasprintf(GFP_KERNEL, fmt, args);
va_end(args);
if (!name)
return -ENOMEM;
ret = kobject_add(kobj, &drv->p->kobj, "%s", name);
kfree(name);
return ret;
}
EXPORT_SYMBOL_GPL(driver_add_kobj);
/** /**
* get_driver - increment driver reference count. * get_driver - increment driver reference count.
* @drv: driver. * @drv: driver.
......
...@@ -264,10 +264,6 @@ extern int __must_check driver_create_file(struct device_driver *driver, ...@@ -264,10 +264,6 @@ extern int __must_check driver_create_file(struct device_driver *driver,
extern void driver_remove_file(struct device_driver *driver, extern void driver_remove_file(struct device_driver *driver,
const struct driver_attribute *attr); const struct driver_attribute *attr);
extern int __must_check driver_add_kobj(struct device_driver *drv,
struct kobject *kobj,
const char *fmt, ...);
extern int __must_check driver_for_each_device(struct device_driver *drv, extern int __must_check driver_for_each_device(struct device_driver *drv,
struct device *start, struct device *start,
void *data, void *data,
......
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