Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c06addd3 authored by Jamie Iles's avatar Jamie Iles Committed by David Woodhouse
Browse files

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: default avatarJamie Iles <jamie@jamieiles.com>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 3ee904f2
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -84,7 +84,6 @@ static struct sys_timer wbd111_timer = {
	.init	= gemini_timer_init,
};

#ifdef CONFIG_MTD_PARTITIONS
static struct mtd_partition wbd111_partitions[] = {
	{
		.name		= "RedBoot",
@@ -117,10 +116,6 @@ static struct mtd_partition wbd111_partitions[] = {
	}
};
#define wbd111_num_partitions  ARRAY_SIZE(wbd111_partitions)
#else
#define wbd111_partitions	NULL
#define wbd111_num_partitions	0
#endif /* CONFIG_MTD_PARTITIONS */

static void __init wbd111_init(void)
{
+1 −6
Original line number Diff line number Diff line
@@ -84,7 +84,6 @@ static struct sys_timer wbd222_timer = {
	.init	= gemini_timer_init,
};

#ifdef CONFIG_MTD_PARTITIONS
static struct mtd_partition wbd222_partitions[] = {
	{
		.name		= "RedBoot",
@@ -117,10 +116,6 @@ static struct mtd_partition wbd222_partitions[] = {
	}
};
#define wbd222_num_partitions  ARRAY_SIZE(wbd222_partitions)
#else
#define wbd222_partitions	NULL
#define wbd222_num_partitions	0
#endif /* CONFIG_MTD_PARTITIONS */

static void __init wbd222_init(void)
{