]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: eth: convert probe/remove to new prefix 22610/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Wed, 25 Mar 2026 20:28:33 +0000 (21:28 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 26 Mar 2026 14:26:26 +0000 (15:26 +0100)
Use the common driver prefix for these two functions.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22610
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c

index f1d3b5492e7d14b1ae97cd28d77bbd99841679bc..fc0e5ddc227d6bf391b72903f94b82f0ed56db3a 100644 (file)
@@ -1475,7 +1475,7 @@ static const struct ethtool_ops rteth_ethtool_ops = {
        .set_link_ksettings = rteth_set_link_ksettings,
 };
 
-static int rtl838x_eth_probe(struct platform_device *pdev)
+static int rteth_probe(struct platform_device *pdev)
 {
        struct net_device *dev;
        struct device_node *dn = pdev->dev.of_node;
@@ -1611,7 +1611,7 @@ static int rtl838x_eth_probe(struct platform_device *pdev)
        return 0;
 }
 
-static void rtl838x_eth_remove(struct platform_device *pdev)
+static void rteth_remove(struct platform_device *pdev)
 {
        struct net_device *dev = platform_get_drvdata(pdev);
        struct rteth_ctrl *ctrl = netdev_priv(dev);
@@ -1647,8 +1647,8 @@ static const struct of_device_id rteth_of_ids[] = {
 MODULE_DEVICE_TABLE(of, rteth_of_ids);
 
 static struct platform_driver rtl838x_eth_driver = {
-       .probe  = rtl838x_eth_probe,
-       .remove = rtl838x_eth_remove,
+       .probe  = rteth_probe,
+       .remove = rteth_remove,
        .driver = {
                .name = KBUILD_MODNAME,
                .pm = NULL,