summaryrefslogtreecommitdiffstats
path: root/drivers/base/driver.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2012-03-07 18:41:09 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2012-03-09 10:35:21 +1100
commitfcd6f76202024763f2f4a348ab666240e4f7ac50 (patch)
tree823ab929d28b382d858262e791bf763fe4e2f237 /drivers/base/driver.c
parentc17a9d4c8495c3a8e724cc846240c46f660a726c (diff)
downloadblackbird-op-linux-fcd6f76202024763f2f4a348ab666240e4f7ac50.tar.gz
blackbird-op-linux-fcd6f76202024763f2f4a348ab666240e4f7ac50.zip
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: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'drivers/base/driver.c')
-rw-r--r--drivers/base/driver.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/drivers/base/driver.c b/drivers/base/driver.c
index b631f7c59453..db4f54c313aa 100644
--- a/drivers/base/driver.c
+++ b/drivers/base/driver.c
@@ -124,36 +124,6 @@ void driver_remove_file(struct device_driver *drv,
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.
* @drv: driver.
*/
OpenPOWER on IntegriCloud