提交 c2aad6d6 编写于 作者: J Jiri Pinkava 提交者: David Woodhouse

mtd: nand: remove doubled chip deselection on (un)lock

Chip deselection is already done in nand_release_device. So only
duplicate code.
Signed-off-by: NJiri Pinkava <jiri.pinkava@vscht.cz>
Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
上级 ac497c16
...@@ -976,9 +976,6 @@ int nand_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) ...@@ -976,9 +976,6 @@ int nand_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len)
ret = __nand_unlock(mtd, ofs, len, 0); ret = __nand_unlock(mtd, ofs, len, 0);
out: out:
/* de-select the NAND device */
chip->select_chip(mtd, -1);
nand_release_device(mtd); nand_release_device(mtd);
return ret; return ret;
...@@ -1046,9 +1043,6 @@ int nand_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) ...@@ -1046,9 +1043,6 @@ int nand_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len)
ret = __nand_unlock(mtd, ofs, len, 0x1); ret = __nand_unlock(mtd, ofs, len, 0x1);
out: out:
/* de-select the NAND device */
chip->select_chip(mtd, -1);
nand_release_device(mtd); nand_release_device(mtd);
return ret; return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册