mtd: mxc_nand: dont call suspend and resume explicitly
authorEric Bénard <eric@eukrea.com>
Thu, 17 Jun 2010 18:59:04 +0000 (20:59 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 4 Aug 2010 09:56:19 +0000 (10:56 +0100)
commit04dd0d3a9a33fdd8c3516db0fa85d9dba5610fc2
treedefc1fbc8cdfad9da1fc08587ac3ad28320fb74a
parentc9fb67735b307a3cdf57e568b6c50c860248d1d3
mtd: mxc_nand: dont call suspend and resume explicitly

The mtd layer is responsible to call mtd->{suspend,resume}.  Doing it
again in the driver is wrong and results in a warning:

nand_resume called for a chip which is not in suspended state

at resume time.  Removing the calls from the resume and suspend
functions makes them empty allowing them to be deleted completely.

Signed-off-by: Eric Bénard <eric@eukrea.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/mxc_nand.c