mtd: prepare partition add and del functions for ioctl requests
authorRoman Tereshonkov <roman.tereshonkov@nokia.com>
Fri, 17 Sep 2010 10:31:41 +0000 (13:31 +0300)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 24 Oct 2010 23:47:37 +0000 (00:47 +0100)
commit5daa7b21496aebf057c12be03038e7220e33353b
tree7ec8f8a086dcfdcb7aec800bf528d3704bcaadc8
parent93ac5a552c831096003f9bc74471300dc1710a42
mtd: prepare partition add and del functions for ioctl requests

mtd_is_master, mtd_add_partition and mtd_del_partition functions
are added to give the possibility of partition manipulation
by ioctl request.

The old partition add function is modified to fit the dynamic
allocation.

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/mtdpart.c
include/linux/mtd/partitions.h