diff options
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 4bea53fe8f4c..914c1016dd8f 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
@@ -373,7 +373,6 @@ struct device { | |||
373 | struct device_private *p; | 373 | struct device_private *p; |
374 | 374 | ||
375 | struct kobject kobj; | 375 | struct kobject kobj; |
376 | unsigned uevent_suppress:1; | ||
377 | const char *init_name; /* initial name of the device */ | 376 | const char *init_name; /* initial name of the device */ |
378 | struct device_type *type; | 377 | struct device_type *type; |
379 | 378 | ||
@@ -465,6 +464,16 @@ static inline void dev_set_drvdata(struct device *dev, void *data) | |||
465 | dev->driver_data = data; | 464 | dev->driver_data = data; |
466 | } | 465 | } |
467 | 466 | ||
467 | static inline unsigned int dev_get_uevent_suppress(const struct device *dev) | ||
468 | { | ||
469 | return dev->kobj.uevent_suppress; | ||
470 | } | ||
471 | |||
472 | static inline void dev_set_uevent_suppress(struct device *dev, int val) | ||
473 | { | ||
474 | dev->kobj.uevent_suppress = val; | ||
475 | } | ||
476 | |||
468 | static inline int device_is_registered(struct device *dev) | 477 | static inline int device_is_registered(struct device *dev) |
469 | { | 478 | { |
470 | return dev->kobj.state_in_sysfs; | 479 | return dev->kobj.state_in_sysfs; |