diff options
-rw-r--r-- | drivers/of/platform.c | 2 | ||||
-rw-r--r-- | include/linux/of_device.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/of/platform.c b/drivers/of/platform.c index 033a224a9fda..30a4641e798a 100644 --- a/drivers/of/platform.c +++ b/drivers/of/platform.c | |||
@@ -508,7 +508,7 @@ EXPORT_SYMBOL(of_unregister_driver); | |||
508 | * value to derive a unique name. As a last resort it will use the node | 508 | * value to derive a unique name. As a last resort it will use the node |
509 | * name followed by a unique number. | 509 | * name followed by a unique number. |
510 | */ | 510 | */ |
511 | static void of_device_make_bus_id(struct device *dev) | 511 | void of_device_make_bus_id(struct device *dev) |
512 | { | 512 | { |
513 | static atomic_t bus_no_reg_magic; | 513 | static atomic_t bus_no_reg_magic; |
514 | struct device_node *node = dev->of_node; | 514 | struct device_node *node = dev->of_node; |
diff --git a/include/linux/of_device.h b/include/linux/of_device.h index e11a0be7893a..35aa44ad9f2c 100644 --- a/include/linux/of_device.h +++ b/include/linux/of_device.h | |||
@@ -27,6 +27,7 @@ | |||
27 | 27 | ||
28 | extern const struct of_device_id *of_match_device( | 28 | extern const struct of_device_id *of_match_device( |
29 | const struct of_device_id *matches, const struct device *dev); | 29 | const struct of_device_id *matches, const struct device *dev); |
30 | extern void of_device_make_bus_id(struct device *dev); | ||
30 | 31 | ||
31 | /** | 32 | /** |
32 | * of_driver_match_device - Tell if a driver's of_match_table matches a device. | 33 | * of_driver_match_device - Tell if a driver's of_match_table matches a device. |