summaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorFrank Rowand <frank.rowand@am.sony.com>2016-10-17 21:17:43 +0200
committerRob Herring <robh@kernel.org>2017-02-09 16:29:37 +0100
commite553f539f2af39db5e3b2c273cc1a22d34be49ad (patch)
tree06c6b0e3afdcd8631316ba92174f4552282593c6 /drivers/of
parentof: fix of_node leak caused in of_find_node_opts_by_path (diff)
downloadlinux-e553f539f2af39db5e3b2c273cc1a22d34be49ad.tar.xz
linux-e553f539f2af39db5e3b2c273cc1a22d34be49ad.zip
of: make of_device_make_bus_id() static
of_device_make_bus_id() was changed to non-static by commit c66012253800 ("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 <frank.rowand@am.sony.com> Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of')
-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 b8064bc2b6eb..5dfcc967dd05 100644
--- a/drivers/of/platform.c
+++ b/drivers/of/platform.c
@@ -76,7 +76,7 @@ EXPORT_SYMBOL(of_find_device_by_node);
* derive a unique name. If it cannot, then it will prepend names from
* parent nodes until a unique name can be derived.
*/
-void of_device_make_bus_id(struct device *dev)
+static void of_device_make_bus_id(struct device *dev)
{
struct device_node *node = dev->of_node;
const __be32 *reg;