summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2013-03-04 13:56:18 +0100
committerDavid Woodhouse <David.Woodhouse@intel.com>2013-04-05 13:02:19 +0200
commit3239a6cdef0be60ec2dadc501cf385dc419d7452 (patch)
tree2b01788af2e9554322d3dc2325416a54a22726f6 /drivers/mtd
parentmtd: nand: remove NAND_COPYBACK macro (diff)
downloadlinux-3239a6cdef0be60ec2dadc501cf385dc419d7452.tar.xz
linux-3239a6cdef0be60ec2dadc501cf385dc419d7452.zip
mtd: nand: use NAND_HAS_CACHEPROG
We have this unused macro, let's use it and justify its existence. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Acked-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/nand_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 39154aa50fcc..11ee9d47f53e 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -2059,7 +2059,7 @@ static int nand_write_page(struct mtd_info *mtd, struct nand_chip *chip,
*/
cached = 0;
- if (!cached || !(chip->options & NAND_CACHEPRG)) {
+ if (!cached || !NAND_HAS_CACHEPROG(chip)) {
chip->cmdfunc(mtd, NAND_CMD_PAGEPROG, -1, -1);
status = chip->waitfunc(mtd, chip);