]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: partitions: add helper for deleting partition
authorRafał Miłecki <rafal@milecki.pl>
Wed, 21 Jun 2017 06:26:42 +0000 (08:26 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 22 Jun 2017 20:13:06 +0000 (13:13 -0700)
commit08263a9ae664b24fa777d20b365601534842b236
tree4c27dcfe0a3e6435da7f76fdc6006e7c7dc799bf
parent01f9c7240a900d5676a8496496f2974dd36996b1
mtd: partitions: add helper for deleting partition

There are two similar functions handling deletion. One handles single
partition and another the whole MTD flash device. They share (duplicate)
some code so it makes sense to add a small helper for that part.

Function del_mtd_partitions has been moved a bit to keep all deleting
stuff together.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/mtdpart.c