]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
linux: remove of_match_ptr from OF only drivers 18763/head
authorRosen Penev <rosenp@gmail.com>
Thu, 1 May 2025 21:11:56 +0000 (14:11 -0700)
committerRobert Marko <robimarko@gmail.com>
Sat, 10 May 2025 18:00:59 +0000 (20:00 +0200)
There's no need for it. Kernel update to 6.12 found that it now needs
linux/of.h explicitly included.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18763
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ath79/files/drivers/mfd/rb4xx-cpld.c
target/linux/ath79/patches-6.6/311-MIPS-pci-ar71xx-convert-to-OF.patch
target/linux/ath79/patches-6.6/313-MIPS-pci-ar724x-convert-to-OF.patch
target/linux/bmips/files/drivers/net/ethernet/broadcom/bcm6348-enet.c
target/linux/bmips/files/drivers/net/ethernet/broadcom/bcm6368-enetsw.c
target/linux/lantiq/patches-6.6/0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch

index 148157aa7b71ba1ba2784bb5c92676b9b88e5d0b..b99a15bb46b132f6309f46a536fb3749ccc7d908 100644 (file)
@@ -162,7 +162,7 @@ static struct spi_driver rb4xx_cpld_driver = {
        .driver = {
                .name = "rb4xx-cpld",
                .bus = &spi_bus_type,
-               .of_match_table = of_match_ptr(rb4xx_cpld_dt_match),
+               .of_match_table = rb4xx_cpld_dt_match,
        },
 };
 
index 9a315aed0b265509e9d65f2db589217731ef2d6c..8842f16511b437de6e0aa2ad876cc67f31a0fc2e 100644 (file)
@@ -200,7 +200,7 @@ Signed-off-by: John Crispin <john@phrozen.org>
        .probe = ar71xx_pci_probe,
        .driver = {
                .name = "ar71xx-pci",
-+              .of_match_table = of_match_ptr(ar71xx_pci_ids),
++              .of_match_table = ar71xx_pci_ids,
        },
  };
  
index 7927c1cbf5f87c5540a38be6276000b94b2a1d76..b8c106d6ab69633eed2cea9097640e0bb9e7a077 100644 (file)
@@ -207,7 +207,7 @@ Signed-off-by: John Crispin <john@phrozen.org>
        .probe = ar724x_pci_probe,
        .driver = {
                .name = "ar724x-pci",
-+              .of_match_table = of_match_ptr(ar724x_pci_ids),
++              .of_match_table = ar724x_pci_ids,
        },
  };
  
index c753918e933c371d307804ad9d9099e7a8f03a0b..ca184e575b2d5661bdeee98bf9d465a0e0462535 100644 (file)
@@ -285,7 +285,7 @@ MODULE_DEVICE_TABLE(of, bcm6348_emac_of_match);
 static struct platform_driver bcm6348_iudma_driver = {
        .driver = {
                .name = "bcm6348-iudma",
-               .of_match_table = of_match_ptr(bcm6348_iudma_of_match),
+               .of_match_table = bcm6348_iudma_of_match,
        },
        .probe  = bcm6348_iudma_probe,
 };
@@ -1701,7 +1701,7 @@ MODULE_DEVICE_TABLE(of, bcm6348_emac_of_match);
 static struct platform_driver bcm6348_emac_driver = {
        .driver = {
                .name = "bcm6348-emac",
-               .of_match_table = of_match_ptr(bcm6348_emac_of_match),
+               .of_match_table = bcm6348_emac_of_match,
        },
        .probe  = bcm6348_emac_probe,
        .remove_new     = bcm6348_emac_remove,
index 456a7f393ec4ea3e76394b344c1139a2fbd17911..97ca6a81d84da75aec8f1e01e98254e6b06e397d 100644 (file)
@@ -1133,7 +1133,7 @@ MODULE_DEVICE_TABLE(of, bcm6368_enetsw_of_match);
 static struct platform_driver bcm6368_enetsw_driver = {
        .driver = {
                .name = "bcm6368-enetsw",
-               .of_match_table = of_match_ptr(bcm6368_enetsw_of_match),
+               .of_match_table = bcm6368_enetsw_of_match,
        },
        .probe  = bcm6368_enetsw_probe,
        .remove_new     = bcm6368_enetsw_remove,
index 3ece97052b4e4a1f3616374c6b2198e46779b5be..f65959b1de951cf8aa5d9b3e1989109c312c56c2 100644 (file)
@@ -149,7 +149,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
 +static struct platform_driver ath5k_eeprom_driver = {
 +      .driver         = {
 +              .name           = "ath5k,eeprom",
-+              .of_match_table = of_match_ptr(ath5k_eeprom_ids),
++              .of_match_table = ath5k_eeprom_ids,
 +      },
 +};
 +