summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@osdl.org>2003-01-05 05:05:48 -0600
committerPatrick Mochel <mochel@osdl.org>2003-01-05 05:05:48 -0600
commitefd526efbaad0b5a6789f6c40e75c6a3bf28eae9 (patch)
tree8f09796a8f3becf25be8b976b321e75e436169c6 /include
parent2afbee7679de44acd09e5d09549078f960d746f5 (diff)
parentd7677dc711c772fd8cf792fbc9387af27b09e86a (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.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)