diff options
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 74246efba931..662e6a10144e 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
@@ -329,6 +329,7 @@ struct device { | |||
329 | 329 | ||
330 | struct kobject kobj; | 330 | struct kobject kobj; |
331 | char bus_id[BUS_ID_SIZE]; /* position on parent bus */ | 331 | char bus_id[BUS_ID_SIZE]; /* position on parent bus */ |
332 | unsigned is_registered:1; | ||
332 | struct device_attribute uevent_attr; | 333 | struct device_attribute uevent_attr; |
333 | struct device_attribute *devt_attr; | 334 | struct device_attribute *devt_attr; |
334 | 335 | ||
@@ -381,7 +382,7 @@ dev_set_drvdata (struct device *dev, void *data) | |||
381 | 382 | ||
382 | static inline int device_is_registered(struct device *dev) | 383 | static inline int device_is_registered(struct device *dev) |
383 | { | 384 | { |
384 | return klist_node_attached(&dev->knode_bus); | 385 | return dev->is_registered; |
385 | } | 386 | } |
386 | 387 | ||
387 | /* | 388 | /* |