From 6b7797688c8a7bde642afc2d9ba2658a1b57c0d5 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 14 Mar 2009 15:52:42 +0000 Subject: nuke obsolete kernel stuff git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14875 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../1002-gta01-no_nand_partitions.patch.patch | 60 ---------------------- 1 file changed, 60 deletions(-) delete mode 100644 target/linux/s3c24xx/patches-2.6.24/1002-gta01-no_nand_partitions.patch.patch (limited to 'target/linux/s3c24xx/patches-2.6.24/1002-gta01-no_nand_partitions.patch.patch') diff --git a/target/linux/s3c24xx/patches-2.6.24/1002-gta01-no_nand_partitions.patch.patch b/target/linux/s3c24xx/patches-2.6.24/1002-gta01-no_nand_partitions.patch.patch deleted file mode 100644 index 88b4d37c82..0000000000 --- a/target/linux/s3c24xx/patches-2.6.24/1002-gta01-no_nand_partitions.patch.patch +++ /dev/null @@ -1,60 +0,0 @@ -From 219a4d34b71c37a2a23739718924b0915790f44f Mon Sep 17 00:00:00 2001 -From: mokopatches -Date: Fri, 4 Apr 2008 11:29:16 +0100 -Subject: [PATCH] gta01-no_nand_partitions.patch - [PATCH] support mtd NAND commandline partitions for S3C2410 - -This patch adds support for the mtd NAND core standard method of passing -partition table information from the bootloader into the kernel by using -the kernel commandline. - -The board specific code can still manually override and provide a fixed -partition table, so this patch will behave backwards compatible. - -Signed-off-by: Harald Welte -Acked-byt: Ben Dooks ---- - drivers/mtd/nand/s3c2410.c | 18 ++++++++++++++++-- - 1 files changed, 16 insertions(+), 2 deletions(-) - -diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c -index 66f76e9..355de78 100644 ---- a/drivers/mtd/nand/s3c2410.c -+++ b/drivers/mtd/nand/s3c2410.c -@@ -559,17 +559,31 @@ static int s3c2410_nand_remove(struct platform_device *pdev) - } - - #ifdef CONFIG_MTD_PARTITIONS -+const char *part_probes[] = { "cmdlinepart", NULL }; - static int s3c2410_nand_add_partition(struct s3c2410_nand_info *info, - struct s3c2410_nand_mtd *mtd, - struct s3c2410_nand_set *set) - { -+ struct mtd_partition *part_info; -+ int nr_part = 0; -+ - if (set == NULL) - return add_mtd_device(&mtd->mtd); - -- if (set->nr_partitions > 0 && set->partitions != NULL) { -- return add_mtd_partitions(&mtd->mtd, set->partitions, set->nr_partitions); -+ if (set->nr_partitions == 0) { -+ mtd->mtd.name = set->name; -+ nr_part = parse_mtd_partitions(&mtd->mtd, part_probes, -+ &part_info, 0); -+ } else { -+ if (set->nr_partitions > 0 && set->partitions != NULL) { -+ nr_part = set->nr_partitions; -+ part_info = set->partitions; -+ } - } - -+ if (nr_part > 0 && part_info) -+ return add_mtd_partitions(&mtd->mtd, part_info, nr_part); -+ - return add_mtd_device(&mtd->mtd); - } - #else --- -1.5.6.5 - -- cgit v1.2.3