realtek: eth: rename driver and matchtable

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>
This commit is contained in:
Markus Stockhausen 2026-03-25 21:13:44 +01:00 committed by Hauke Mehrtens
parent 83084bac95
commit 5b827eb91f

View 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,
},
};