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

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

mtd: nomadik_nand: convert to mtd_device_register()



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

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 1f3a7c62
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -158,12 +158,7 @@ static int nomadik_nand_probe(struct platform_device *pdev)
		goto err_unmap;
	}

#ifdef CONFIG_MTD_PARTITIONS
	add_mtd_partitions(&host->mtd, pdata->parts, pdata->nparts);
#else
	pr_info("Registering %s as whole device\n", mtd->name);
	add_mtd_device(mtd);
#endif
	mtd_device_register(&host->mtd, pdata->parts, pdata->nparts);

	platform_set_drvdata(pdev, host);
	return 0;