Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: maps: remove check for CONFIG_MTD_SUPERH_RESERVE

Since (a few releases before) v2.6.0 there have been checks for
CONFIG_MTD_SUPERH_RESERVE. One check is still present. But a Kconfig
symbol MTD_SUPERH_RESERVE has never been added. So a few lines of dead
code can be removed.

Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>

authored by

Paul Bolle and committed by
Brian Norris
390e9eac 0c53be9d

+1 -24
+1 -24
drivers/mtd/maps/solutionengine.c
··· 33 33 34 34 static const char * const probes[] = { "RedBoot", "cmdlinepart", NULL }; 35 35 36 - #ifdef CONFIG_MTD_SUPERH_RESERVE 37 - static struct mtd_partition superh_se_partitions[] = { 38 - /* Reserved for boot code, read-only */ 39 - { 40 - .name = "flash_boot", 41 - .offset = 0x00000000, 42 - .size = CONFIG_MTD_SUPERH_RESERVE, 43 - .mask_flags = MTD_WRITEABLE, 44 - }, 45 - /* All else is writable (e.g. JFFS) */ 46 - { 47 - .name = "Flash FS", 48 - .offset = MTDPART_OFS_NXTBLK, 49 - .size = MTDPART_SIZ_FULL, 50 - } 51 - }; 52 - #define NUM_PARTITIONS ARRAY_SIZE(superh_se_partitions) 53 - #else 54 - #define superh_se_partitions NULL 55 - #define NUM_PARTITIONS 0 56 - #endif /* CONFIG_MTD_SUPERH_RESERVE */ 57 - 58 36 static int __init init_soleng_maps(void) 59 37 { 60 38 /* First probe at offset 0 */ ··· 70 92 mtd_device_register(eprom_mtd, NULL, 0); 71 93 } 72 94 73 - mtd_device_parse_register(flash_mtd, probes, NULL, 74 - superh_se_partitions, NUM_PARTITIONS); 95 + mtd_device_parse_register(flash_mtd, probes, NULL, NULL, 0); 75 96 76 97 return 0; 77 98 }