summaryrefslogtreecommitdiff
path: root/include/linux/device.h
diff options
context:
space:
mode:
authorAlexander Viro <viro@math.psu.edu>2002-10-15 04:23:37 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-10-15 04:23:37 -0700
commit8b290eb199620bd66049bf972ef0d995576cf3b9 (patch)
tree3932311a724195953f992d96425dd4bed53383ea /include/linux/device.h
parent847c633af8a42e49030ff941fb64fb3ece6c95ef (diff)
[PATCH] device_register() splitup
new driverfs helpers - device_initialize/device_add and device_del. The latter is device_unregister() sans the final put_device(). The former is splitup of device_register() into initialization and insertion into tree.
Diffstat (limited to 'include/linux/device.h')
-rw-r--r--include/linux/device.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index 3290c5c40276..80a63939f924 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -329,6 +329,9 @@ dev_set_drvdata (struct device *dev, void *data)
*/
extern int device_register(struct device * dev);
extern void device_unregister(struct device * dev);
+extern void device_initialize(struct device * dev);
+extern int device_add(struct device * dev);
+extern void device_del(struct device * dev);
/* driverfs interface for exporting device attributes */