Skip to content

Commit

Permalink
of/device: Make of_device_make_bus_id() usable by other code.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Grant Likely committed Jul 30, 2010
1 parent d2f7183 commit c660122
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/of/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions include/linux/of_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c660122

Please sign in to comment.