aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2007-12-19 14:54:39 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2008-01-24 23:40:34 -0500
commitcbe9c595f1de2e2a98403be2c14bfbc2486e84c4 (patch)
treec3e3a30bb18e1597dda4bc28c11c3add049e1e02 /include/linux
parent23b9c1ab5baf368a32b7242bf110ef1f48700d04 (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')
-rw-r--r--include/linux/device.h4
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 *);
157extern void driver_remove_file(struct device_driver *, struct driver_attribute *); 157extern void driver_remove_file(struct device_driver *, struct driver_attribute *);
158 158
159extern int __must_check driver_add_kobj(struct device_driver *drv,
160 struct kobject *kobj,
161 const char *fmt, ...);
162
159extern int __must_check driver_for_each_device(struct device_driver * drv, 163extern 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 *));