Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1502131 > unrolled thread
| Started by | frowand.list@gmail.com |
|---|---|
| First post | 2016-10-17 18:00 +0200 |
| Last post | 2016-10-17 21:10 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] make of_device_make_bus_id() static frowand.list@gmail.com - 2016-10-17 18:00 +0200
Re: [PATCH] make of_device_make_bus_id() static Frank Rowand <frowand.list@gmail.com> - 2016-10-17 21:10 +0200
| From | frowand.list@gmail.com |
|---|---|
| Date | 2016-10-17 18:00 +0200 |
| Subject | [PATCH] make of_device_make_bus_id() static |
| Message-ID | <stiuu-5no-21@gated-at.bofh.it> |
From: Frank Rowand <frank.rowand@am.sony.com>
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>
---
drivers/of/platform.c | 2 +-
include/linux/of_device.h | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/of/platform.c b/drivers/of/platform.c
index e4bf07d20f9b..b232063174cc 100644
--- a/drivers/of/platform.c
+++ b/drivers/of/platform.c
@@ -73,7 +73,7 @@ struct platform_device *of_find_device_by_node(struct device_node *np)
* 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;
diff --git a/include/linux/of_device.h b/include/linux/of_device.h
index cc7dd687a89d..5c2aeed17dd4 100644
--- a/include/linux/of_device.h
+++ b/include/linux/of_device.h
@@ -13,7 +13,6 @@
#ifdef CONFIG_OF
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.
--
1.9.1
[toc] | [next] | [standalone]
| From | Frank Rowand <frowand.list@gmail.com> |
|---|---|
| Date | 2016-10-17 21:10 +0200 |
| Message-ID | <stlsm-7Hb-23@gated-at.bofh.it> |
| In reply to | #1502131 |
On 10/17/16 08:50, frowand.list@gmail.com wrote:
> From: Frank Rowand <frank.rowand@am.sony.com>
>
> 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>
Rob,
Please ignore due to bad subject. I will resend
with proper subject.
-Frank
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web