mtd: sh_flctl: Use cached register value for FLCMNCR
authorBastian Hecht <hechtb@googlemail.com>
Thu, 1 Mar 2012 09:48:39 +0000 (10:48 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 26 Mar 2012 23:42:57 +0000 (00:42 +0100)
commit0b3f0d12eff1ed23496fcf4cf468e1d317516e53
treee84337479fd27342f617707819f7af27729409c1
parentdd5ab248329edab4b16b70e4d9920f162d181d90
mtd: sh_flctl: Use cached register value for FLCMNCR

Instead of reading out the register, use a cached value. This will
make way for a proper runtime power management implementation.

Signed-off-by: Bastian Hecht <hechtb@gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/sh_flctl.c
include/linux/mtd/sh_flctl.h