]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: eth: rename driver and matchtable
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Wed, 25 Mar 2026 20:13:44 +0000 (21:13 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 26 Mar 2026 14:26:26 +0000 (15:26 +0100)
Align the driver and matchtable naming convention to the new
rteth prefix. While we are here autogenerate the module name
by using KBUILD_MODNAME. This is common upstream practice.

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 f03fe8cfc1f3f383ddf91016301596dca2830060..33f972544d6c209b94882db27fa8812022f347e1 100644 (file)
@@ -1632,7 +1632,7 @@ static void rtl838x_eth_remove(struct platform_device *pdev)
        }
 }
 
-static const struct of_device_id rtl838x_eth_of_ids[] = {
+static const struct of_device_id rteth_of_ids[] = {
        {
                .compatible = "realtek,rtl8380-eth",
                .data = &rteth_838x_cfg,
@@ -1651,15 +1651,15 @@ static const struct of_device_id rtl838x_eth_of_ids[] = {
        },
        { /* sentinel */ }
 };
-MODULE_DEVICE_TABLE(of, rtl838x_eth_of_ids);
+MODULE_DEVICE_TABLE(of, rteth_of_ids);
 
 static struct platform_driver rtl838x_eth_driver = {
        .probe  = rtl838x_eth_probe,
        .remove = rtl838x_eth_remove,
        .driver = {
-               .name = "rtl838x-eth",
+               .name = KBUILD_MODNAME,
                .pm = NULL,
-               .of_match_table = rtl838x_eth_of_ids,
+               .of_match_table = rteth_of_ids,
        },
 };