diff options
Diffstat (limited to 'drivers/mtd/nand/fsl_ifc_nand.c')
| -rw-r--r-- | drivers/mtd/nand/fsl_ifc_nand.c | 41 | 
1 files changed, 0 insertions, 41 deletions
diff --git a/drivers/mtd/nand/fsl_ifc_nand.c b/drivers/mtd/nand/fsl_ifc_nand.c index 1f71b545062..e92d223e5e1 100644 --- a/drivers/mtd/nand/fsl_ifc_nand.c +++ b/drivers/mtd/nand/fsl_ifc_nand.c @@ -627,46 +627,6 @@ static void fsl_ifc_read_buf(struct mtd_info *mtd, u8 *buf, int len)  }  /* - * Verify buffer against the IFC Controller Data Buffer - */ -static int fsl_ifc_verify_buf(struct mtd_info *mtd, -			       const u_char *buf, int len) -{ -	struct nand_chip *chip = mtd->priv; -	struct fsl_ifc_mtd *priv = chip->priv; -	struct fsl_ifc_ctrl *ctrl = priv->ctrl; -	struct fsl_ifc_nand_ctrl *nctrl = ifc_nand_ctrl; -	int i; - -	if (len < 0) { -		dev_err(priv->dev, "%s: write_buf of %d bytes", __func__, len); -		return -EINVAL; -	} - -	if ((unsigned int)len > nctrl->read_bytes - nctrl->index) { -		dev_err(priv->dev, -			"%s: beyond end of buffer (%d requested, %u available)\n", -			__func__, len, nctrl->read_bytes - nctrl->index); - -		nctrl->index = nctrl->read_bytes; -		return -EINVAL; -	} - -	for (i = 0; i < len; i++) -		if (in_8(&nctrl->addr[nctrl->index + i]) != buf[i]) -			break; - -	nctrl->index += len; - -	if (i != len) -		return -EIO; -	if (ctrl->nand_stat != IFC_NAND_EVTER_STAT_OPC) -		return -EIO; - -	return 0; -} - -/*   * This function is called after Program and Erase Operations to   * check for success or failure.   */ @@ -796,7 +756,6 @@ static int fsl_ifc_chip_init(struct fsl_ifc_mtd *priv)  	chip->write_buf = fsl_ifc_write_buf;  	chip->read_buf = fsl_ifc_read_buf; -	chip->verify_buf = fsl_ifc_verify_buf;  	chip->select_chip = fsl_ifc_select_chip;  	chip->cmdfunc = fsl_ifc_cmdfunc;  	chip->waitfunc = fsl_ifc_wait;  |