]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/mtd/mtdconcat.c
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)
commit664addc248d2fed68d013d26ff2fc796d7134259
tree197681f173c14068a8d634c9ab1c889fd02316cf
parent5def48982b778aaebe201f85af7170b7d0a6619f
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