mtd: onenand: convert to mtd_device_register()
Convert to mtd_device_register() and remove the CONFIG_MTD_PARTITIONS preprocessor conditionals as partitioning is always available. Cc: Kyungmin Park <kyungmin.park@samsung.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>
This commit is contained in:

committed by
David Woodhouse

parent
47854888cc
commit
711a632d1f
@@ -4142,12 +4142,8 @@ void onenand_release(struct mtd_info *mtd)
|
||||
{
|
||||
struct onenand_chip *this = mtd->priv;
|
||||
|
||||
#ifdef CONFIG_MTD_PARTITIONS
|
||||
/* Deregister partitions */
|
||||
del_mtd_partitions (mtd);
|
||||
#endif
|
||||
/* Deregister the device */
|
||||
del_mtd_device (mtd);
|
||||
mtd_device_unregister(mtd);
|
||||
|
||||
/* Free bad block table memory, if allocated */
|
||||
if (this->bbm) {
|
||||
|
Reference in New Issue
Block a user