X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fbase%2Fbase.h;h=b676f8f801f8c5adde6577bcd45632470ece691d;hb=b9daa99ee533578e3f88231e7a16784dcb44ec42;hp=8af0bb2c0aa879e9e20bfc4ad6acf5e328b5331e;hpb=93e746db183b3bdbbda67900f79b5835f9cb388f;p=linux-2.6-omap-h63xx.git diff --git a/drivers/base/base.h b/drivers/base/base.h index 8af0bb2c0aa..b676f8f801f 100644 --- a/drivers/base/base.h +++ b/drivers/base/base.h @@ -69,6 +69,7 @@ struct class_private { * @klist_children - klist containing all children of this device * @knode_parent - node in sibling list * @knode_driver - node in driver list + * @knode_bus - node in bus list * @device - pointer back to the struct class that this structure is * associated with. * @@ -78,12 +79,15 @@ struct device_private { struct klist klist_children; struct klist_node knode_parent; struct klist_node knode_driver; + struct klist_node knode_bus; struct device *device; }; #define to_device_private_parent(obj) \ container_of(obj, struct device_private, knode_parent) #define to_device_private_driver(obj) \ container_of(obj, struct device_private, knode_driver) +#define to_device_private_bus(obj) \ + container_of(obj, struct device_private, knode_bus) /* initialisation functions */ extern int devices_init(void);