Skip to content

Commit e553f53

Browse files
Frank Rowandrobherring
authored andcommitted
of: make of_device_make_bus_id() static
of_device_make_bus_id() was changed to non-static by commit c660122 ("of/device: Make of_device_make_bus_id() usable by other code") more than 6 years ago, but there are no users of it outside of platform.c. Make the function static again. Signed-off-by: Frank Rowand <[email protected]> Signed-off-by: Rob Herring <[email protected]>
1 parent 0549bde commit e553f53

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

drivers/of/platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ EXPORT_SYMBOL(of_find_device_by_node);
7676
* derive a unique name. If it cannot, then it will prepend names from
7777
* parent nodes until a unique name can be derived.
7878
*/
79-
void of_device_make_bus_id(struct device *dev)
79+
static void of_device_make_bus_id(struct device *dev)
8080
{
8181
struct device_node *node = dev->of_node;
8282
const __be32 *reg;

include/linux/of_device.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ struct device;
1313
#ifdef CONFIG_OF
1414
extern const struct of_device_id *of_match_device(
1515
const struct of_device_id *matches, const struct device *dev);
16-
extern void of_device_make_bus_id(struct device *dev);
1716

1817
/**
1918
* of_driver_match_device - Tell if a driver's of_match_table matches a device.

0 commit comments

Comments
 (0)