mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
MIPS: Octeon: offer the RedBoot parser when it is modular
The bootbus flash driver lists "RedBoot" among the partition parsers to try under "#ifdef CONFIG_MTD_REDBOOT_PARTS", so building that parser as a module drops it from the list and the partitions on such a chip are never found. Use IS_ENABLED(), like the USB device-tree fixups in octeon-platform.c. Untested - I have no board with RedBoot partitions; the change is by inspection, in the same family as the two above. Assisted-by: Claude:claude-opus-5 Signed-off-by: Orgad Shaneh <orgads@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
parent
f1dd1f0c8d
commit
17b0e14d7b
|
|
@ -22,7 +22,7 @@ static struct map_info flash_map;
|
|||
static struct mtd_info *mymtd;
|
||||
static const char *part_probe_types[] = {
|
||||
"cmdlinepart",
|
||||
#ifdef CONFIG_MTD_REDBOOT_PARTS
|
||||
#if IS_ENABLED(CONFIG_MTD_REDBOOT_PARTS)
|
||||
"RedBoot",
|
||||
#endif
|
||||
NULL
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user