summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/docg4.c
diff options
context:
space:
mode:
authorShmulik Ladkani <shmulik.ladkani@gmail.com>2012-05-09 10:06:35 (GMT)
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-05-14 04:24:40 (GMT)
commit5c2ffb11d40dd967eecb45b8570a871746ba124b (patch)
tree234ae261e6db2eb23303a908e84a66780e807ce3 /drivers/mtd/nand/docg4.c
parent4fba37aec7e43f7c80a89425cc820622fcf07464 (diff)
downloadlinux-5c2ffb11d40dd967eecb45b8570a871746ba124b.tar.xz
mtd: nand: remove 'sndcmd' parameter of 'read_oob/read_oob_raw'
As of [mtd: nand: remove autoincrement 'sndcmd' code], the NAND_CMD_READ0 command is issued unconditionally. Thus, read_oob/read_oob_raw's 'sndcmd' argument is no longer needed, as well as their return code. Remove the 'sndcmd' parameter, and set the return code to 0. Signed-off-by: Shmulik Ladkani <shmulik.ladkani@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/nand/docg4.c')
-rw-r--r--drivers/mtd/nand/docg4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/docg4.c b/drivers/mtd/nand/docg4.c
index 1f8485d..a225e49 100644
--- a/drivers/mtd/nand/docg4.c
+++ b/drivers/mtd/nand/docg4.c
@@ -799,7 +799,7 @@ static int docg4_read_page(struct mtd_info *mtd, struct nand_chip *nand,
}
static int docg4_read_oob(struct mtd_info *mtd, struct nand_chip *nand,
- int page, int sndcmd)
+ int page)
{
struct docg4_priv *doc = nand->priv;
void __iomem *docptr = doc->virtadr;