]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - drivers/base/driver.c
sync: use correct signed type when handling SYNC_IOC_WAIT
[linux-2.6.git] / drivers / base / driver.c
index 60e4f77ca66286499959cccfdd83b4e4a36ff8a8..3ec3896c83a659ac069a4d27a98f0bcdd193f78e 100644 (file)
@@ -123,36 +123,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);
-
 static int driver_add_groups(struct device_driver *drv,
                             const struct attribute_group **groups)
 {