Commit 390e9eac authored by Paul Bolle's avatar Paul Bolle Committed by Brian Norris

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: default avatarPaul Bolle <pebolle@tiscali.nl>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 0c53be9d
...@@ -33,28 +33,6 @@ struct map_info soleng_flash_map = { ...@@ -33,28 +33,6 @@ struct map_info soleng_flash_map = {
static const char * const probes[] = { "RedBoot", "cmdlinepart", NULL }; static const char * const probes[] = { "RedBoot", "cmdlinepart", NULL };
#ifdef CONFIG_MTD_SUPERH_RESERVE
static struct mtd_partition superh_se_partitions[] = {
/* Reserved for boot code, read-only */
{
.name = "flash_boot",
.offset = 0x00000000,
.size = CONFIG_MTD_SUPERH_RESERVE,
.mask_flags = MTD_WRITEABLE,
},
/* All else is writable (e.g. JFFS) */
{
.name = "Flash FS",
.offset = MTDPART_OFS_NXTBLK,
.size = MTDPART_SIZ_FULL,
}
};
#define NUM_PARTITIONS ARRAY_SIZE(superh_se_partitions)
#else
#define superh_se_partitions NULL
#define NUM_PARTITIONS 0
#endif /* CONFIG_MTD_SUPERH_RESERVE */
static int __init init_soleng_maps(void) static int __init init_soleng_maps(void)
{ {
/* First probe at offset 0 */ /* First probe at offset 0 */
...@@ -92,8 +70,7 @@ static int __init init_soleng_maps(void) ...@@ -92,8 +70,7 @@ static int __init init_soleng_maps(void)
mtd_device_register(eprom_mtd, NULL, 0); mtd_device_register(eprom_mtd, NULL, 0);
} }
mtd_device_parse_register(flash_mtd, probes, NULL, mtd_device_parse_register(flash_mtd, probes, NULL, NULL, 0);
superh_se_partitions, NUM_PARTITIONS);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment