Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292497
b: refs/heads/master
c: fcd6f76
h: refs/heads/master
i:
  292495: 9566ebe
v: v3
  • Loading branch information
Stephen Rothwell authored and Benjamin Herrenschmidt committed Mar 8, 2012
1 parent 868fae6 commit 0691e3a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 35 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c17a9d4c8495c3a8e724cc846240c46f660a726c
refs/heads/master: fcd6f76202024763f2f4a348ab666240e4f7ac50
30 changes: 0 additions & 30 deletions trunk/drivers/base/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/**
* get_driver - increment driver reference count.
* @drv: driver.
Expand Down
4 changes: 0 additions & 4 deletions trunk/include/linux/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,6 @@ extern int __must_check driver_create_file(struct device_driver *driver,
extern void driver_remove_file(struct device_driver *driver,
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,
struct device *start,
void *data,
Expand Down

0 comments on commit 0691e3a

Please sign in to comment.