Driver: add driver_add_kobj for looney iseries_veth driver
The iseries driver wants to hang kobjects off of its driver, so, to preserve backwards compatibility, we need to add a call to the driver core to allow future changes to work properly. Hopefully no one uses this function in the future and the iseries_veth driver authors come to their senses so I can remove this hack... Cc: Dave Larson <larson1@us.ibm.com> Cc: Santiago Leon <santil@us.ibm.com> Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
23b9c1ab5b
commit
cbe9c595f1
3 changed files with 29 additions and 1 deletions
|
@ -156,6 +156,10 @@ extern int __must_check driver_create_file(struct device_driver *,
|
|||
struct driver_attribute *);
|
||||
extern void driver_remove_file(struct device_driver *, struct driver_attribute *);
|
||||
|
||||
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,
|
||||
int (*fn)(struct device *, void *));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue