mtd: nand: fix S3C NAND clock stop
authorJiri Pinkava <jiri.pinkava@vscht.cz>
Wed, 13 Apr 2011 09:59:30 +0000 (11:59 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 25 May 2011 00:53:10 +0000 (01:53 +0100)
commitac497c1602555c908c9738fa93b1145f431d1876
treea1ab0f42276413e23c4b8ba96fa15d903d841f36
parentc9ddab25d1b62baead4b0c5de562f1fce026dcfd
mtd: nand: fix S3C NAND clock stop

Current implementation of s3c2410_nand_select_chip call
clk_disable every time when chip = -1 (de-select). This happend
multiple times even if chip was already de-selected. This causes
disabling clock even if they are already disabled and due to
nature of clock subsytem implementation this causes nand clock
to be disabled and newer enabled again.

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>
drivers/mtd/nand/s3c2410.c