[openwrt/openwrt] realtek: mdio-serdes: use correct device table identifier

LEDE Commits lede-commits at lists.infradead.org
Tue Dec 16 05:03:13 PST 2025


robimarko pushed a commit to openwrt/openwrt.git, branch openwrt-25.12:
https://git.openwrt.org/88ab3205fe474e71567701e19444a1a7edb81d71

commit 88ab3205fe474e71567701e19444a1a7edb81d71
Author: Jonas Jelonek <jelonek.jonas at gmail.com>
AuthorDate: Tue Dec 16 12:06:57 2025 +0000

    realtek: mdio-serdes: use correct device table identifier
    
    Use the correct identifier 'rtsds_of_match' instead of
    'rtsds_mdio_of_match' because the latter doesn't exist.
    
    This doesn't cause an error for 6.12. However, with 6.18 the
    implementation of MODULE_DEVICE_TABLE has changed to use 'static' and
    'used' [1] instead of 'extern' and 'unused' [2].
    
    [1] https://github.com/torvalds/linux/blob/7d0a66e4bb9081d75c82ec4957c50034cb0ea449/include/linux/module.h#L260
    [2] https://github.com/torvalds/linux/blob/adc218676eef25575469234709c2d87185ca223a/include/linux/module.h#L249
    
    Signed-off-by: Jonas Jelonek <jelonek.jonas at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/21182
    Signed-off-by: Robert Marko <robimarko at gmail.com>
    (cherry picked from commit d519a3ee86c303989e253538461528c4818dc20e)
---
 .../realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto-serdes.c      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto-serdes.c b/target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto-serdes.c
index 097fcc41b4..641a6196b9 100644
--- a/target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto-serdes.c
+++ b/target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto-serdes.c
@@ -528,7 +528,7 @@ static const struct of_device_id rtsds_of_match[] = {
 	},
 	{ /* sentinel */ }
 };
-MODULE_DEVICE_TABLE(of, rtsds_mdio_of_match);
+MODULE_DEVICE_TABLE(of, rtsds_of_match);
 
 static struct platform_driver rtsds_mdio_driver = {
 	.driver = {




More information about the lede-commits mailing list