diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2007-12-19 14:54:39 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-01-24 23:40:34 -0500 |
commit | cbe9c595f1de2e2a98403be2c14bfbc2486e84c4 (patch) | |
tree | c3e3a30bb18e1597dda4bc28c11c3add049e1e02 /include/linux/device.h | |
parent | 23b9c1ab5baf368a32b7242bf110ef1f48700d04 (diff) |
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>
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index d974dda4aa51..721ee318d57b 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
@@ -156,6 +156,10 @@ extern int __must_check driver_create_file(struct device_driver *, | |||
156 | struct driver_attribute *); | 156 | struct driver_attribute *); |
157 | extern void driver_remove_file(struct device_driver *, struct driver_attribute *); | 157 | extern void driver_remove_file(struct device_driver *, struct driver_attribute *); |
158 | 158 | ||
159 | extern int __must_check driver_add_kobj(struct device_driver *drv, | ||
160 | struct kobject *kobj, | ||
161 | const char *fmt, ...); | ||
162 | |||
159 | extern int __must_check driver_for_each_device(struct device_driver * drv, | 163 | extern int __must_check driver_for_each_device(struct device_driver * drv, |
160 | struct device *start, void *data, | 164 | struct device *start, void *data, |
161 | int (*fn)(struct device *, void *)); | 165 | int (*fn)(struct device *, void *)); |