summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@osdl.org>2002-12-31 03:44:23 -0600
committerPatrick Mochel <mochel@osdl.org>2002-12-31 03:44:23 -0600
commitb1aad19bbf1a67db3edca33c3db332f0326179cb (patch)
tree08b06a964b438d46cea857d985ec5ebcb38efcc1 /include/linux
parent646c3054a4b3c19e531e4b00f73046fa07e7c30d (diff)
parentd5f1f33d1a5a400539ba24937b9b9a1de8474d94 (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/linux')
-rw-r--r--include/linux/device.h2
-rw-r--r--include/linux/kobject.h2
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)