mtd: maps: pcmciamtd: Add reference counter to set_vpp()
authorPaul Parsons <lost.distance@yahoo.com>
Wed, 7 Mar 2012 14:13:41 +0000 (14:13 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 26 Mar 2012 23:52:56 +0000 (00:52 +0100)
commit7c8d206f219fe52966d970f791246a542718e5ba
tree1b9c6e0630aed4df9efb911fccd276c978dd1b23
parent5fbabf3f45a15c2b39170980cee01368138f4d79
mtd: maps: pcmciamtd: Add reference counter to set_vpp()

This patch is part of a set which fixes unnecessary flash erase and write errors
resulting from the MTD CFI driver turning off vpp while an erase is in progress.
This patch allows pcmciamtd_set_vpp() calls to be nested by adding a reference
counter.

Signed-off-by: Paul Parsons <lost.distance@yahoo.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/maps/pcmciamtd.c