diff options
| author | Patrick Mochel <mochel@osdl.org> | 2003-01-04 23:08:51 -0600 |
|---|---|---|
| committer | Patrick Mochel <mochel@osdl.org> | 2003-01-04 23:08:51 -0600 |
| commit | d7677dc711c772fd8cf792fbc9387af27b09e86a (patch) | |
| tree | 0a471ea4433de0f0adda45f0ffc4386b7551d495 /include | |
| parent | 1d0619c5bcec6ce9f7ce577899bffcbf83d2aa44 (diff) | |
| parent | 8624ae3d2d3928a83d54585dd053583d81d781f2 (diff) | |
Merge bk://linux.bkbits.net/linux-2.5
into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-virgin
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/device.h | 2 | ||||
| -rw-r--r-- | include/linux/kobject.h | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index a2d6e8171f9b..1552ec5a4abd 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -69,7 +69,6 @@ struct bus_type { struct subsystem drvsubsys; struct subsystem devsubsys; struct list_head devices; - struct list_head drivers; int (*match)(struct device * dev, struct device_driver * drv); struct device * (*add) (struct device * parent, char * bus_id); @@ -119,7 +118,6 @@ struct device_driver { struct semaphore unload_sem; struct kobject kobj; - struct list_head bus_list; struct list_head class_list; struct list_head devices; diff --git a/include/linux/kobject.h b/include/linux/kobject.h index 6b528c5a61cb..821d17e15a01 100644 --- a/include/linux/kobject.h +++ b/include/linux/kobject.h @@ -52,7 +52,7 @@ extern void subsystem_unregister(struct subsystem *); static inline struct subsystem * subsys_get(struct subsystem * s) { - return container_of(kobject_get(&s->kobj),struct subsystem,kobj); + return s ? container_of(kobject_get(&s->kobj),struct subsystem,kobj) : NULL; } static inline void subsys_put(struct subsystem * s) |
