linux: remove of_match_ptr from OF only drivers
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>
This commit is contained in:
parent
703e7d2d5b
commit
b5fba20351
6 changed files with 7 additions and 7 deletions
|
@ -162,7 +162,7 @@ static struct spi_driver rb4xx_cpld_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "rb4xx-cpld",
|
.name = "rb4xx-cpld",
|
||||||
.bus = &spi_bus_type,
|
.bus = &spi_bus_type,
|
||||||
.of_match_table = of_match_ptr(rb4xx_cpld_dt_match),
|
.of_match_table = rb4xx_cpld_dt_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -200,7 +200,7 @@ Signed-off-by: John Crispin <john@phrozen.org>
|
||||||
.probe = ar71xx_pci_probe,
|
.probe = ar71xx_pci_probe,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "ar71xx-pci",
|
.name = "ar71xx-pci",
|
||||||
+ .of_match_table = of_match_ptr(ar71xx_pci_ids),
|
+ .of_match_table = ar71xx_pci_ids,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -207,7 +207,7 @@ Signed-off-by: John Crispin <john@phrozen.org>
|
||||||
.probe = ar724x_pci_probe,
|
.probe = ar724x_pci_probe,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "ar724x-pci",
|
.name = "ar724x-pci",
|
||||||
+ .of_match_table = of_match_ptr(ar724x_pci_ids),
|
+ .of_match_table = ar724x_pci_ids,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -285,7 +285,7 @@ MODULE_DEVICE_TABLE(of, bcm6348_emac_of_match);
|
||||||
static struct platform_driver bcm6348_iudma_driver = {
|
static struct platform_driver bcm6348_iudma_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "bcm6348-iudma",
|
.name = "bcm6348-iudma",
|
||||||
.of_match_table = of_match_ptr(bcm6348_iudma_of_match),
|
.of_match_table = bcm6348_iudma_of_match,
|
||||||
},
|
},
|
||||||
.probe = bcm6348_iudma_probe,
|
.probe = bcm6348_iudma_probe,
|
||||||
};
|
};
|
||||||
|
@ -1701,7 +1701,7 @@ MODULE_DEVICE_TABLE(of, bcm6348_emac_of_match);
|
||||||
static struct platform_driver bcm6348_emac_driver = {
|
static struct platform_driver bcm6348_emac_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "bcm6348-emac",
|
.name = "bcm6348-emac",
|
||||||
.of_match_table = of_match_ptr(bcm6348_emac_of_match),
|
.of_match_table = bcm6348_emac_of_match,
|
||||||
},
|
},
|
||||||
.probe = bcm6348_emac_probe,
|
.probe = bcm6348_emac_probe,
|
||||||
.remove_new = bcm6348_emac_remove,
|
.remove_new = bcm6348_emac_remove,
|
||||||
|
|
|
@ -1133,7 +1133,7 @@ MODULE_DEVICE_TABLE(of, bcm6368_enetsw_of_match);
|
||||||
static struct platform_driver bcm6368_enetsw_driver = {
|
static struct platform_driver bcm6368_enetsw_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "bcm6368-enetsw",
|
.name = "bcm6368-enetsw",
|
||||||
.of_match_table = of_match_ptr(bcm6368_enetsw_of_match),
|
.of_match_table = bcm6368_enetsw_of_match,
|
||||||
},
|
},
|
||||||
.probe = bcm6368_enetsw_probe,
|
.probe = bcm6368_enetsw_probe,
|
||||||
.remove_new = bcm6368_enetsw_remove,
|
.remove_new = bcm6368_enetsw_remove,
|
||||||
|
|
|
@ -149,7 +149,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
|
||||||
+static struct platform_driver ath5k_eeprom_driver = {
|
+static struct platform_driver ath5k_eeprom_driver = {
|
||||||
+ .driver = {
|
+ .driver = {
|
||||||
+ .name = "ath5k,eeprom",
|
+ .name = "ath5k,eeprom",
|
||||||
+ .of_match_table = of_match_ptr(ath5k_eeprom_ids),
|
+ .of_match_table = ath5k_eeprom_ids,
|
||||||
+ },
|
+ },
|
||||||
+};
|
+};
|
||||||
+
|
+
|
||||||
|
|
Loading…
Reference in a new issue