aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of/platform.c
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2010-07-23 17:04:01 -0400
committerGrant Likely <grant.likely@secretlab.ca>2010-07-30 02:03:58 -0400
commitc6601225380088018ae93df2ba7f0bb65334d63b (patch)
treeb87880db2c72a3cd8528948d15703743bccc726d /drivers/of/platform.c
parentd2f718398a21cdb925f12c2b332d206eacd967a6 (diff)
of/device: Make of_device_make_bus_id() usable by other code.
The AMBA bus should also use of_device_make_bus_id() when populating device out of device tree data. This patch makes the function non-static, and adds a suitable prototype in of_device.h Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/of/platform.c')
-rw-r--r--drivers/of/platform.c2
1 files changed, 1 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 */
511static void of_device_make_bus_id(struct device *dev) 511void 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;