]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: fix master device identification for mtd repartition
authorRoman Tereshonkov <roman.tereshonkov@nokia.com>
Tue, 23 Nov 2010 12:17:17 +0000 (14:17 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 3 Dec 2010 16:32:35 +0000 (16:32 +0000)
commit0c749b8e3205652ac42300297b6bec9eb479b19d
tree56a02838448545b45d9fed28a87df591e1f57a17
parentba7d17af4bd49a0e3154da4870ddd54d62598263
mtd: fix master device identification for mtd repartition

Function mtd_has_master renamed as mtd_is_partition to follow the function logic.
The patch fixes the problem of checking the right mtd device for partition creation.
To delete partition checking is not needed here so as it is done in mtd_del_partition.
By master we consider the mtd device which does not belong to any partition.

Signed-off-by: Roman Tereshonkov <roman.tereshonkov@nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtdchar.c
drivers/mtd/mtdpart.c
include/linux/mtd/partitions.h