aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorSaravana Kannan <saravanak@google.com>2019-08-06 12:26:53 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-08-07 17:37:48 +0200
commit0ad0bdd8ba6489d05044aa5ca6c6f7491be7743c (patch)
treed01a5a79bde3539cb636419295c45508a50e2dd1
parentolpc: x01: convert platform driver to use dev_groups (diff)
downloadwireguard-linux-0ad0bdd8ba6489d05044aa5ca6c6f7491be7743c.tar.xz
wireguard-linux-0ad0bdd8ba6489d05044aa5ca6c6f7491be7743c.zip
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: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Saravana Kannan <saravanak@google.com> Acked-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20190806192654.138605-1-saravanak@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/of/platform.c4
1 files 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;