]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: marvell: prestera: Correct typo
authorFlorian Fainelli <f.fainelli@gmail.com>
Sat, 9 Jan 2021 05:06:22 +0000 (21:06 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 12 Jan 2021 00:46:50 +0000 (16:46 -0800)
The function was incorrectly named with a trailing 'r' at the end of
prestera.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20210109050622.8081-1-f.fainelli@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/prestera/prestera_switchdev.c

index e2374a39e4f8aeca3b84b473d6783d35acfaf630..beb6447fbe40709f3798653e3540606d931327a9 100644 (file)
@@ -652,9 +652,9 @@ static int prestera_port_bridge_vlan_stp_set(struct prestera_port *port,
        return 0;
 }
 
-static int presterar_port_attr_stp_state_set(struct prestera_port *port,
-                                            struct net_device *dev,
-                                            u8 state)
+static int prestera_port_attr_stp_state_set(struct prestera_port *port,
+                                           struct net_device *dev,
+                                           u8 state)
 {
        struct prestera_bridge_port *br_port;
        struct prestera_bridge_vlan *br_vlan;
@@ -702,8 +702,8 @@ static int prestera_port_obj_attr_set(struct net_device *dev,
 
        switch (attr->id) {
        case SWITCHDEV_ATTR_ID_PORT_STP_STATE:
-               err = presterar_port_attr_stp_state_set(port, attr->orig_dev,
-                                                       attr->u.stp_state);
+               err = prestera_port_attr_stp_state_set(port, attr->orig_dev,
+                                                      attr->u.stp_state);
                break;
        case SWITCHDEV_ATTR_ID_PORT_PRE_BRIDGE_FLAGS:
                if (attr->u.brport_flags &