diff options
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 7bb9f426f3e6..0713e10571dd 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
@@ -33,6 +33,7 @@ struct class; | |||
33 | struct class_private; | 33 | struct class_private; |
34 | struct bus_type; | 34 | struct bus_type; |
35 | struct bus_type_private; | 35 | struct bus_type_private; |
36 | struct device_node; | ||
36 | 37 | ||
37 | struct bus_attribute { | 38 | struct bus_attribute { |
38 | struct attribute attr; | 39 | struct attribute attr; |
@@ -127,6 +128,10 @@ struct device_driver { | |||
127 | 128 | ||
128 | bool suppress_bind_attrs; /* disables bind/unbind via sysfs */ | 129 | bool suppress_bind_attrs; /* disables bind/unbind via sysfs */ |
129 | 130 | ||
131 | #if defined(CONFIG_OF) | ||
132 | const struct of_device_id *of_match_table; | ||
133 | #endif | ||
134 | |||
130 | int (*probe) (struct device *dev); | 135 | int (*probe) (struct device *dev); |
131 | int (*remove) (struct device *dev); | 136 | int (*remove) (struct device *dev); |
132 | void (*shutdown) (struct device *dev); | 137 | void (*shutdown) (struct device *dev); |
@@ -435,6 +440,9 @@ struct device { | |||
435 | override */ | 440 | override */ |
436 | /* arch specific additions */ | 441 | /* arch specific additions */ |
437 | struct dev_archdata archdata; | 442 | struct dev_archdata archdata; |
443 | #ifdef CONFIG_OF | ||
444 | struct device_node *of_node; | ||
445 | #endif | ||
438 | 446 | ||
439 | dev_t devt; /* dev_t, creates the sysfs "dev" */ | 447 | dev_t devt; /* dev_t, creates the sysfs "dev" */ |
440 | 448 | ||