]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: eth: use new prefix for open/stop operations
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Sat, 24 Jan 2026 21:35:45 +0000 (22:35 +0100)
committerRobert Marko <robimarko@gmail.com>
Sun, 25 Jan 2026 21:18:48 +0000 (22:18 +0100)
Align the functions with rest of driver.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/21685
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c

index 44e655cc646ba1fb75504cdcfcb82ea54dde5ff1..3eeeb2cd0144a331c5cce2c0aceb6b127a282e46 100644 (file)
@@ -683,7 +683,7 @@ static void rtl839x_setup_notify_ring_buffer(struct rteth_ctrl *ctrl)
        ctrl->lastEvent = 0;
 }
 
-static int rtl838x_eth_open(struct net_device *ndev)
+static int rteth_open(struct net_device *ndev)
 {
        unsigned long flags;
        struct rteth_ctrl *ctrl = netdev_priv(ndev);
@@ -816,7 +816,7 @@ static void rtl838x_hw_stop(struct rteth_ctrl *ctrl)
        mdelay(200);
 }
 
-static int rtl838x_eth_stop(struct net_device *ndev)
+static int rteth_stop(struct net_device *ndev)
 {
        struct rteth_ctrl *ctrl = netdev_priv(ndev);
 
@@ -1450,8 +1450,8 @@ static struct phylink_pcs *rteth_mac_select_pcs(struct phylink_config *config,
 }
 
 static const struct net_device_ops rteth_838x_netdev_ops = {
-       .ndo_open = rtl838x_eth_open,
-       .ndo_stop = rtl838x_eth_stop,
+       .ndo_open = rteth_open,
+       .ndo_stop = rteth_stop,
        .ndo_start_xmit = rteth_start_xmit,
        .ndo_select_queue = rteth_83xx_pick_tx_queue,
        .ndo_set_mac_address = rteth_set_mac_address,
@@ -1494,8 +1494,8 @@ static const struct rteth_config rteth_838x_cfg = {
 };
 
 static const struct net_device_ops rteth_839x_netdev_ops = {
-       .ndo_open = rtl838x_eth_open,
-       .ndo_stop = rtl838x_eth_stop,
+       .ndo_open = rteth_open,
+       .ndo_stop = rteth_stop,
        .ndo_start_xmit = rteth_start_xmit,
        .ndo_select_queue = rteth_83xx_pick_tx_queue,
        .ndo_set_mac_address = rteth_set_mac_address,
@@ -1538,8 +1538,8 @@ static const struct rteth_config rteth_839x_cfg = {
 };
 
 static const struct net_device_ops rteth_930x_netdev_ops = {
-       .ndo_open = rtl838x_eth_open,
-       .ndo_stop = rtl838x_eth_stop,
+       .ndo_open = rteth_open,
+       .ndo_stop = rteth_stop,
        .ndo_start_xmit = rteth_start_xmit,
        .ndo_select_queue = rteth_93xx_pick_tx_queue,
        .ndo_set_mac_address = rteth_set_mac_address,
@@ -1588,8 +1588,8 @@ static const struct rteth_config rteth_930x_cfg = {
 };
 
 static const struct net_device_ops rteth_931x_netdev_ops = {
-       .ndo_open = rtl838x_eth_open,
-       .ndo_stop = rtl838x_eth_stop,
+       .ndo_open = rteth_open,
+       .ndo_stop = rteth_stop,
        .ndo_start_xmit = rteth_start_xmit,
        .ndo_select_queue = rteth_93xx_pick_tx_queue,
        .ndo_set_mac_address = rteth_set_mac_address,