summaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorSaravana Kannan <saravanak@google.com>2020-11-21 03:02:32 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-12-09 19:14:48 +0100
commit2d09e6eb4a6f20273959f4905ccf009da8c64c7a (patch)
treeb758156e84f9ef0e00672fee0b455896141287ee /drivers/of
parentdriver core: Refactor fw_devlink feature (diff)
downloadlinux-2d09e6eb4a6f20273959f4905ccf009da8c64c7a.tar.xz
linux-2d09e6eb4a6f20273959f4905ccf009da8c64c7a.zip
driver core: Delete pointless parameter in fwnode_operations.add_links
The struct device input to add_links() is not used for anything. So delete it. Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Saravana Kannan <saravanak@google.com> Link: https://lore.kernel.org/r/20201121020232.908850-18-saravanak@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/property.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/of/property.c b/drivers/of/property.c
index 620d29fdace8..5f9eed79a8aa 100644
--- a/drivers/of/property.c
+++ b/drivers/of/property.c
@@ -1343,8 +1343,7 @@ static int of_link_property(struct device_node *con_np, const char *prop_name)
return ret;
}
-static int of_fwnode_add_links(struct fwnode_handle *fwnode,
- struct device *dev)
+static int of_fwnode_add_links(struct fwnode_handle *fwnode)
{
struct property *p;
struct device_node *con_np = to_of_node(fwnode);