summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2010-07-23 15:04:01 -0600
committerGrant Likely <grant.likely@secretlab.ca>2010-07-30 00:03:58 -0600
commitc6601225380088018ae93df2ba7f0bb65334d63b (patch)
treeb87880db2c72a3cd8528948d15703743bccc726d
parentd2f718398a21cdb925f12c2b332d206eacd967a6 (diff)
downloadop-kernel-dev-c6601225380088018ae93df2ba7f0bb65334d63b.zip
op-kernel-dev-c6601225380088018ae93df2ba7f0bb65334d63b.tar.gz
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>
-rw-r--r--drivers/of/platform.c2
-rw-r--r--include/linux/of_device.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/of/platform.c b/drivers/of/platform.c
index 033a224..30a4641 100644
--- a/drivers/of/platform.c
+++ b/drivers/of/platform.c
@@ -508,7 +508,7 @@ EXPORT_SYMBOL(of_unregister_driver);
* value to derive a unique name. As a last resort it will use the node
* name followed by a unique number.
*/
-static void of_device_make_bus_id(struct device *dev)
+void of_device_make_bus_id(struct device *dev)
{
static atomic_t bus_no_reg_magic;
struct device_node *node = dev->of_node;
diff --git a/include/linux/of_device.h b/include/linux/of_device.h
index e11a0be..35aa44a 100644
--- a/include/linux/of_device.h
+++ b/include/linux/of_device.h
@@ -27,6 +27,7 @@
extern const struct of_device_id *of_match_device(
const struct of_device_id *matches, const struct device *dev);
+extern void of_device_make_bus_id(struct device *dev);
/**
* of_driver_match_device - Tell if a driver's of_match_table matches a device.
OpenPOWER on IntegriCloud