diff options
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index d7a1ae063b65..441461f5ee20 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
@@ -429,7 +429,6 @@ struct device { | |||
429 | struct kobject kobj; | 429 | struct kobject kobj; |
430 | char bus_id[BUS_ID_SIZE]; /* position on parent bus */ | 430 | char bus_id[BUS_ID_SIZE]; /* position on parent bus */ |
431 | struct device_type *type; | 431 | struct device_type *type; |
432 | unsigned is_registered:1; | ||
433 | unsigned uevent_suppress:1; | 432 | unsigned uevent_suppress:1; |
434 | 433 | ||
435 | struct semaphore sem; /* semaphore to synchronize calls to | 434 | struct semaphore sem; /* semaphore to synchronize calls to |
@@ -509,7 +508,7 @@ static inline void dev_set_drvdata(struct device *dev, void *data) | |||
509 | 508 | ||
510 | static inline int device_is_registered(struct device *dev) | 509 | static inline int device_is_registered(struct device *dev) |
511 | { | 510 | { |
512 | return dev->is_registered; | 511 | return dev->kobj.state_in_sysfs; |
513 | } | 512 | } |
514 | 513 | ||
515 | void driver_init(void); | 514 | void driver_init(void); |