From: Huang Shijie Date: Fri, 9 Nov 2012 08:23:45 +0000 (+0800) Subject: mtd: de-select the chip when it is not used X-Git-Tag: v3.8-rc1~47^2~50 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07300164657526d8d26c626c43723c310fbf3616;p=pandora-kernel.git mtd: de-select the chip when it is not used When we scan several nand chips with nand_scan(), such as ....................... nand_scan(*, 2); ....................... In nand_scan_ident(), the maxchips will become 2, so the current code will select chip 1 to read the device ID. But the chip 0 is still selected in this case. To make the logic clear, we'd better de-select the chip when it is not used. This patch de-select the nand chip if it is not used any more. Signed-off-by: Huang Shijie Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed