]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/device.h
Revert "driver core: move knode_bus into private structure"
[linux-2.6-omap-h63xx.git] / include / linux / device.h
index b97a0cf1eb0585c88ed4f3db800beda65ef0fc5a..8987f4776064779eaf8a9b4010bb3553507d2ed7 100644 (file)
@@ -366,6 +366,7 @@ struct device_dma_parameters {
 };
 
 struct device {
+       struct klist_node       knode_bus;
        struct device           *parent;
 
        struct device_private   *p;
@@ -482,6 +483,17 @@ extern struct device *device_find_child(struct device *dev, void *data,
 extern int device_rename(struct device *dev, char *new_name);
 extern int device_move(struct device *dev, struct device *new_parent);
 
+/*
+ * Root device objects for grouping under /sys/devices
+ */
+extern struct device *__root_device_register(const char *name,
+                                            struct module *owner);
+static inline struct device *root_device_register(const char *name)
+{
+       return __root_device_register(name, THIS_MODULE);
+}
+extern void root_device_unregister(struct device *root);
+
 /*
  * Manual binding of a device to driver. See drivers/base/bus.c
  * for information on use.