]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mtd: rawnand: s3c2410: Drop S3C2410 support
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sat, 30 Aug 2025 17:01:09 +0000 (19:01 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 1 Sep 2025 13:01:20 +0000 (15:01 +0200)
Samsung S3C24xx family of SoCs was removed from the Linux kernel in the
commit 61b7f8920b17 ("ARM: s3c: remove all s3c24xx support"), in January
2023.  There are no in-kernel users of its compatibles and platform IDs.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/s3c2410.c

index 229f2e87d56eeacf5fda0ad29df59655b328658e..33130d75c5bab709a3e5cfd6e95b273cf62e4d46 100644 (file)
@@ -169,18 +169,6 @@ struct s3c24XX_nand_devtype_data {
        enum s3c_cpu_type type;
 };
 
-static const struct s3c24XX_nand_devtype_data s3c2410_nand_devtype_data = {
-       .type = TYPE_S3C2410,
-};
-
-static const struct s3c24XX_nand_devtype_data s3c2412_nand_devtype_data = {
-       .type = TYPE_S3C2412,
-};
-
-static const struct s3c24XX_nand_devtype_data s3c2440_nand_devtype_data = {
-       .type = TYPE_S3C2440,
-};
-
 /* conversion functions */
 
 static struct s3c2410_nand_mtd *s3c2410_nand_mtd_toours(struct mtd_info *mtd)
@@ -944,22 +932,6 @@ static const struct nand_controller_ops s3c24xx_nand_controller_ops = {
        .setup_interface = s3c2410_nand_setup_interface,
 };
 
-static const struct of_device_id s3c24xx_nand_dt_ids[] = {
-       {
-               .compatible = "samsung,s3c2410-nand",
-               .data = &s3c2410_nand_devtype_data,
-       }, {
-               /* also compatible with s3c6400 */
-               .compatible = "samsung,s3c2412-nand",
-               .data = &s3c2412_nand_devtype_data,
-       }, {
-               .compatible = "samsung,s3c2440-nand",
-               .data = &s3c2440_nand_devtype_data,
-       },
-       { /* sentinel */ }
-};
-MODULE_DEVICE_TABLE(of, s3c24xx_nand_dt_ids);
-
 static int s3c24xx_nand_probe_dt(struct platform_device *pdev)
 {
        const struct s3c24XX_nand_devtype_data *devtype_data;
@@ -1194,15 +1166,6 @@ static int s3c24xx_nand_resume(struct platform_device *dev)
 
 static const struct platform_device_id s3c24xx_driver_ids[] = {
        {
-               .name           = "s3c2410-nand",
-               .driver_data    = TYPE_S3C2410,
-       }, {
-               .name           = "s3c2440-nand",
-               .driver_data    = TYPE_S3C2440,
-       }, {
-               .name           = "s3c2412-nand",
-               .driver_data    = TYPE_S3C2412,
-       }, {
                .name           = "s3c6400-nand",
                .driver_data    = TYPE_S3C2412, /* compatible with 2412 */
        },
@@ -1219,7 +1182,6 @@ static struct platform_driver s3c24xx_nand_driver = {
        .id_table       = s3c24xx_driver_ids,
        .driver         = {
                .name   = "s3c24xx-nand",
-               .of_match_table = s3c24xx_nand_dt_ids,
        },
 };