driver core: Delete pointless parameter in fwnode_operations.add_links
authorSaravana Kannan <saravanak@google.com>
Sat, 21 Nov 2020 02:02:32 +0000 (18:02 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Dec 2020 18:14:48 +0000 (19:14 +0100)
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>
drivers/base/core.c
drivers/firmware/efi/efi-init.c
drivers/of/property.c
include/linux/fwnode.h

index 9edf908..63edb8b 100644 (file)
@@ -1472,7 +1472,7 @@ static void fw_devlink_parse_fwnode(struct fwnode_handle *fwnode)
        if (fwnode->flags & FWNODE_FLAG_LINKS_ADDED)
                return;
 
-       fwnode_call_int_op(fwnode, add_links, NULL);
+       fwnode_call_int_op(fwnode, add_links);
        fwnode->flags |= FWNODE_FLAG_LINKS_ADDED;
 }
 
index c0c3d4c..a552a08 100644 (file)
@@ -316,8 +316,7 @@ static struct device_node *find_pci_overlap_node(void)
  * resource reservation conflict on the memory window that the efifb
  * framebuffer steals from the PCIe host bridge.
  */
-static int efifb_add_links(struct fwnode_handle *fwnode,
-                          struct device *dev)
+static int efifb_add_links(struct fwnode_handle *fwnode)
 {
        struct device_node *sup_np;
 
index 620d29f..5f9eed7 100644 (file)
@@ -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);
index ffa9129..fde4ad9 100644 (file)
@@ -127,8 +127,7 @@ struct fwnode_operations {
        (*graph_get_port_parent)(struct fwnode_handle *fwnode);
        int (*graph_parse_endpoint)(const struct fwnode_handle *fwnode,
                                    struct fwnode_endpoint *endpoint);
-       int (*add_links)(struct fwnode_handle *fwnode,
-                        struct device *dev);
+       int (*add_links)(struct fwnode_handle *fwnode);
 };
 
 #define fwnode_has_op(fwnode, op)                              \