]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ath79: remove platform_device_id from drivers 18860/head
authorRosen Penev <rosenp@gmail.com>
Sun, 18 May 2025 01:44:05 +0000 (18:44 -0700)
committerRobert Marko <robimarko@gmail.com>
Thu, 22 May 2025 09:17:21 +0000 (11:17 +0200)
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@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18860
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ath79/files/drivers/gpio/gpio-rb4xx.c
target/linux/ath79/files/drivers/mtd/nand/raw/nand_rb4xx.c

index db381f5d30fc5ee81c2bc29c197d46a75d6be99f..299dc7d0a1715cb4f28fea0381e87e75fb5549d2 100644 (file)
@@ -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",
        },
index 51a6fa99c6eaa44daced85b770a5cf6b481a3379..e475105170960a0c7065b3973f5fcb692d527969 100644 (file)
@@ -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",
        },