Commit 0ad0bdd8 authored by Saravana Kannan's avatar Saravana Kannan Committed by Greg Kroah-Hartman

of/platform: Fix fn definitons for of_link_is_valid() and of_link_property()

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: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarSaravana Kannan <saravanak@google.com>
Acked-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20190806192654.138605-1-saravanak@google.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0fbb93fc
...@@ -506,7 +506,7 @@ int of_platform_default_populate(struct device_node *root, ...@@ -506,7 +506,7 @@ int of_platform_default_populate(struct device_node *root,
} }
EXPORT_SYMBOL_GPL(of_platform_default_populate); 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); of_node_get(sup);
/* /*
...@@ -625,7 +625,7 @@ static const struct supplier_bindings bindings[] = { ...@@ -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) const char *prop)
{ {
struct device_node *phandle; struct device_node *phandle;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment