diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/device.h | 4 | ||||
-rw-r--r-- | include/linux/kobject.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 47f343c7bdda..d5706c448bcb 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
@@ -374,7 +374,6 @@ struct device { | |||
374 | struct device *parent; | 374 | struct device *parent; |
375 | 375 | ||
376 | struct kobject kobj; | 376 | struct kobject kobj; |
377 | char bus_id[BUS_ID_SIZE]; /* position on parent bus */ | ||
378 | unsigned uevent_suppress:1; | 377 | unsigned uevent_suppress:1; |
379 | const char *init_name; /* initial name of the device */ | 378 | const char *init_name; /* initial name of the device */ |
380 | struct device_type *type; | 379 | struct device_type *type; |
@@ -427,8 +426,7 @@ struct device { | |||
427 | 426 | ||
428 | static inline const char *dev_name(const struct device *dev) | 427 | static inline const char *dev_name(const struct device *dev) |
429 | { | 428 | { |
430 | /* will be changed into kobject_name(&dev->kobj) in the near future */ | 429 | return kobject_name(&dev->kobj); |
431 | return dev->bus_id; | ||
432 | } | 430 | } |
433 | 431 | ||
434 | extern int dev_set_name(struct device *dev, const char *name, ...) | 432 | extern int dev_set_name(struct device *dev, const char *name, ...) |
diff --git a/include/linux/kobject.h b/include/linux/kobject.h index 5437ac0276e2..c9c214d7bba2 100644 --- a/include/linux/kobject.h +++ b/include/linux/kobject.h | |||
@@ -72,6 +72,8 @@ struct kobject { | |||
72 | 72 | ||
73 | extern int kobject_set_name(struct kobject *kobj, const char *name, ...) | 73 | extern int kobject_set_name(struct kobject *kobj, const char *name, ...) |
74 | __attribute__((format(printf, 2, 3))); | 74 | __attribute__((format(printf, 2, 3))); |
75 | extern int kobject_set_name_vargs(struct kobject *kobj, const char *fmt, | ||
76 | va_list vargs); | ||
75 | 77 | ||
76 | static inline const char *kobject_name(const struct kobject *kobj) | 78 | static inline const char *kobject_name(const struct kobject *kobj) |
77 | { | 79 | { |