linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] of/platform: Fix fn definitons for of_link_is_valid() and of_link_property()
@ 2019-08-06 19:26 Saravana Kannan
  2019-08-06 19:26 ` [PATCH 2/2] of/platform: Disable generic device linking code for PowerPC Saravana Kannan
  2019-08-06 21:20 ` [PATCH 1/2] of/platform: Fix fn definitons for of_link_is_valid() and of_link_property() Rob Herring
  0 siblings, 2 replies; 9+ messages in thread
From: Saravana Kannan @ 2019-08-06 19:26 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Rob Herring, Frank Rowand
  Cc: Saravana Kannan, Stephen Rothwell, kernel-team, devicetree, linux-kernel

of_link_is_valid() can be static since it's not used anywhere else.

of_link_property() return type should have been int instead of bool.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Saravana Kannan <saravanak@google.com>
---
 drivers/of/platform.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/of/platform.c b/drivers/of/platform.c
index 21838226d68a..f68de5c4aeff 100644
--- a/drivers/of/platform.c
+++ b/drivers/of/platform.c
@@ -506,7 +506,7 @@ int of_platform_default_populate(struct device_node *root,
 }
 EXPORT_SYMBOL_GPL(of_platform_default_populate);
 
-bool of_link_is_valid(struct device_node *con, struct device_node *sup)
+static bool of_link_is_valid(struct device_node *con, struct device_node *sup)
 {
 	of_node_get(sup);
 	/*
@@ -625,7 +625,7 @@ static const struct supplier_bindings bindings[] = {
 	{ },
 };
 
-static bool of_link_property(struct device *dev, struct device_node *con_np,
+static int of_link_property(struct device *dev, struct device_node *con_np,
 			     const char *prop)
 {
 	struct device_node *phandle;
-- 
2.22.0.770.g0f2c4a37fd-goog


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-08-20 15:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-06 19:26 [PATCH 1/2] of/platform: Fix fn definitons for of_link_is_valid() and of_link_property() Saravana Kannan
2019-08-06 19:26 ` [PATCH 2/2] of/platform: Disable generic device linking code for PowerPC Saravana Kannan
2019-08-06 21:26   ` Rob Herring
2019-08-06 22:04     ` Saravana Kannan
2019-08-14 21:02       ` Saravana Kannan
2019-08-14 23:41       ` Rob Herring
2019-08-16  2:04         ` Saravana Kannan
2019-08-20 15:18           ` Rob Herring
2019-08-06 21:20 ` [PATCH 1/2] of/platform: Fix fn definitons for of_link_is_valid() and of_link_property() Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).