]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: remove R/O checking duplication
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 3 Feb 2012 16:13:23 +0000 (18:13 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 26 Mar 2012 23:29:11 +0000 (00:29 +0100)
commit4890237c25876652df7dcaaddd6cae9cf35ab07c
tree197681f173c14068a8d634c9ab1c889fd02316cf
parentd7a18aa123cc18d415199a4d7fe84757ab778151
mtd: remove R/O checking duplication

Many drivers check whether the partition is R/O and return -EROFS if yes.
Let's stop having duplicated checks and move them to the API functions
instead.

And again a bit of noise - deleted few too sparse newlines, sorry.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/chips/map_ram.c
drivers/mtd/chips/map_rom.c
drivers/mtd/devices/phram.c
drivers/mtd/mtdconcat.c
drivers/mtd/mtdcore.c
drivers/mtd/mtdpart.c
drivers/mtd/ubi/gluebi.c
include/linux/mtd/mtd.h