[openwrt/openwrt] ath79: remove platform_device_id from drivers
LEDE Commits
lede-commits at lists.infradead.org
Thu May 22 02:17:24 PDT 2025
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/15078ecb6880a22eba75dd9e5d70c9f31960fde8
commit 15078ecb6880a22eba75dd9e5d70c9f31960fde8
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Sat May 17 18:44:05 2025 -0700
ath79: remove platform_device_id from drivers
This was needed while ar71xx was in tree. This is no longer the case.
Not only that, these have already been converted to OF.
Signed-off-by: Rosen Penev <rosenp at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18860
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
target/linux/ath79/files/drivers/gpio/gpio-rb4xx.c | 7 -------
target/linux/ath79/files/drivers/mtd/nand/raw/nand_rb4xx.c | 7 -------
2 files changed, 14 deletions(-)
diff --git a/target/linux/ath79/files/drivers/gpio/gpio-rb4xx.c b/target/linux/ath79/files/drivers/gpio/gpio-rb4xx.c
index db381f5d30..299dc7d0a1 100644
--- a/target/linux/ath79/files/drivers/gpio/gpio-rb4xx.c
+++ b/target/linux/ath79/files/drivers/gpio/gpio-rb4xx.c
@@ -141,15 +141,8 @@ static int rb4xx_gpio_probe(struct platform_device *pdev)
return devm_gpiochip_add_data(&pdev->dev, &gpio->chip, gpio);
}
-static const struct platform_device_id rb4xx_gpio_id_table[] = {
- { "mikrotik,rb4xx-gpio", },
- { },
-};
-MODULE_DEVICE_TABLE(platform, rb4xx_gpio_id_table);
-
static struct platform_driver rb4xx_gpio_driver = {
.probe = rb4xx_gpio_probe,
- .id_table = rb4xx_gpio_id_table,
.driver = {
.name = "rb4xx-gpio",
},
diff --git a/target/linux/ath79/files/drivers/mtd/nand/raw/nand_rb4xx.c b/target/linux/ath79/files/drivers/mtd/nand/raw/nand_rb4xx.c
index 51a6fa99c6..e475105170 100644
--- a/target/linux/ath79/files/drivers/mtd/nand/raw/nand_rb4xx.c
+++ b/target/linux/ath79/files/drivers/mtd/nand/raw/nand_rb4xx.c
@@ -222,16 +222,9 @@ static void rb4xx_nand_remove(struct platform_device *pdev)
nand_cleanup(&nand->chip);
}
-static const struct platform_device_id rb4xx_nand_id_table[] = {
- { "mikrotik,rb4xx-nand", },
- { },
-};
-MODULE_DEVICE_TABLE(platform, rb4xx_nand_id_table);
-
static struct platform_driver rb4xx_nand_driver = {
.probe = rb4xx_nand_probe,
.remove_new = rb4xx_nand_remove,
- .id_table = rb4xx_nand_id_table,
.driver = {
.name = "rb4xx-nand",
},
More information about the lede-commits
mailing list