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

arm: mtd: gemini: convert to mtd_device_register()

Convert to mtd_device_register() and remove the CONFIG_MTD_PARTITIONS
preprocessor conditionals as partitioning is always available.

Cc: Hans Ulli Kroll <ulli.kroll@googlemail.com>
Signed-off-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

authored by

Jamie Iles and committed by
David Woodhouse
c06addd3 3ee904f2

+2 -12
+1 -6
arch/arm/mach-gemini/board-wbd111.c
··· 84 84 .init = gemini_timer_init, 85 85 }; 86 86 87 - #ifdef CONFIG_MTD_PARTITIONS 88 87 static struct mtd_partition wbd111_partitions[] = { 89 88 { 90 89 .name = "RedBoot", ··· 115 116 .mask_flags = MTD_WRITEABLE, 116 117 } 117 118 }; 118 - #define wbd111_num_partitions ARRAY_SIZE(wbd111_partitions) 119 - #else 120 - #define wbd111_partitions NULL 121 - #define wbd111_num_partitions 0 122 - #endif /* CONFIG_MTD_PARTITIONS */ 119 + #define wbd111_num_partitions ARRAY_SIZE(wbd111_partitions) 123 120 124 121 static void __init wbd111_init(void) 125 122 {
+1 -6
arch/arm/mach-gemini/board-wbd222.c
··· 84 84 .init = gemini_timer_init, 85 85 }; 86 86 87 - #ifdef CONFIG_MTD_PARTITIONS 88 87 static struct mtd_partition wbd222_partitions[] = { 89 88 { 90 89 .name = "RedBoot", ··· 115 116 .mask_flags = MTD_WRITEABLE, 116 117 } 117 118 }; 118 - #define wbd222_num_partitions ARRAY_SIZE(wbd222_partitions) 119 - #else 120 - #define wbd222_partitions NULL 121 - #define wbd222_num_partitions 0 122 - #endif /* CONFIG_MTD_PARTITIONS */ 119 + #define wbd222_num_partitions ARRAY_SIZE(wbd222_partitions) 123 120 124 121 static void __init wbd222_init(void) 125 122 {