]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit891cf18736f250230c27e66c9ac63d89f91ed731
tree7ec8f8a086dcfdcb7aec800bf528d3704bcaadc8
parentc0469d81af20beb4bc3599932a2eb22a06373f23
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