Skip to content

Commit

Permalink
mtd: nand: remove doubled chip deselection on (un)lock
Browse files Browse the repository at this point in the history
Chip deselection is already done in nand_release_device. So only
duplicate code.

Signed-off-by: Jiri Pinkava <jiri.pinkava@vscht.cz>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Jiri Pinkava authored and David Woodhouse committed May 25, 2011
1 parent ac497c1 commit c2aad6d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/mtd/nand/nand_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -976,9 +976,6 @@ int nand_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len)
ret = __nand_unlock(mtd, ofs, len, 0);

out:
/* de-select the NAND device */
chip->select_chip(mtd, -1);

nand_release_device(mtd);

return ret;
Expand Down Expand Up @@ -1046,9 +1043,6 @@ int nand_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len)
ret = __nand_unlock(mtd, ofs, len, 0x1);

out:
/* de-select the NAND device */
chip->select_chip(mtd, -1);

nand_release_device(mtd);

return ret;
Expand Down

0 comments on commit c2aad6d

Please sign in to comment.