Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c2aad6d6 authored by Jiri Pinkava's avatar Jiri Pinkava Committed by David Woodhouse
Browse files

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: default avatarJiri Pinkava <jiri.pinkava@vscht.cz>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent ac497c16
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -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;
@@ -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;