Files
ack-tegra/include/linux
Artem Bityutskiy 1a30871fe6 mtd: fix MTD suspend
Commits 3fe4bae884 and
079c985e7a broke MTD suspend in 2 ways:

1. When the '->suspend' method is not present, we return -EOPNOTSUPP, but
   the callers of 'mtd_suspend()' expects 0 instead.
2. Checking of the 'mtd' parameter against NULL has been incorrectly removed
   in 'mtd_cls_suspend()'.

This patch fixes the breakages. This has been found, analyzed, reported
and tested by Rafael J. Wysocki <rjw@sisk.pl>.

Note, this patch is not needed in the stable tree because it causes a
regression introduced during the v3.3 merge window.

Reported-by: Rafael J. Wysocki <rjw@sisk.pl>
Tested-by: Rafael J. Wysocki <rjw@sisk.pl>
Tested-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2012-01-30 14:23:07 +00:00
..
2011-12-11 18:25:16 -05:00
2012-01-30 14:23:07 +00:00
2011-12-13 15:30:49 -05:00
2012-01-04 15:52:42 -08:00
2011-11-02 16:07:03 -07:00
2012-01-03 22:55:17 -05:00
2011-11-16 09:21:50 +01:00
2012-01-03 22:54:57 -05:00
2012-01-09 19:23:45 -05:00
2011-11-07 23:54:53 +01:00
2011-11-26 14:59:39 -05:00
2011-12-11 18:25:16 -05:00
2012-01-03 22:54:58 -05:00
2012-01-03 22:54:56 -05:00
2011-11-16 18:16:38 -05:00
2011-11-13 16:10:10 -05:00
2012-01-03 22:55:17 -05:00
2011-12-11 18:25:16 -05:00
2012-01-09 13:52:09 +01:00
2011-12-14 11:19:07 -08:00
2011-12-27 11:26:41 +02:00
2012-01-03 22:55:15 -05:00
2011-12-08 10:22:09 -08:00
2011-11-14 00:47:54 -05:00
2011-12-05 10:22:15 -08:00
2011-12-05 10:21:45 -08:00
2012-01-05 14:01:21 -05:00
2011-11-02 16:07:02 -07:00
2012-01-03 22:54:56 -05:00
2012-01-03 22:55:07 -05:00
2012-01-03 22:54:56 -05:00
2012-01-03 22:52:40 -05:00
2011-11-29 11:59:50 +00:00
2012-01-03 22:54:56 -05:00
2011-11-02 16:07:02 -07:00