From: Huang Shijie Date: Mon, 19 Nov 2012 06:43:29 +0000 (+0800) Subject: mtd: remove the de-select chip code in nand_release_device() X-Git-Tag: v3.8-rc1~47^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0bb6903c8fca2d5ebef1f8ae63d420eb931bb1e;p=pandora-kernel.git mtd: remove the de-select chip code in nand_release_device() The nand_get_device() does not select the chip, but nand_release_device() does de-select the chip. It is really strange. With the current code, nand_sync() will de-select the chip, even if the chip has never been selected. To make the balance of select/de-select chip, it's better to remove the de-select chip code in nand_release_device() which makes the code more clear. Signed-off-by: Huang Shijie Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed