aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mtd/mtdpart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c
index 29675edb44b4..63d1cd2c17be 100644
--- a/drivers/mtd/mtdpart.c
+++ b/drivers/mtd/mtdpart.c
@@ -395,7 +395,7 @@ static struct mtd_part *add_one_partition(struct mtd_info *master,
395 slave->mtd.get_fact_prot_info = part_get_fact_prot_info; 395 slave->mtd.get_fact_prot_info = part_get_fact_prot_info;
396 if (master->sync) 396 if (master->sync)
397 slave->mtd.sync = part_sync; 397 slave->mtd.sync = part_sync;
398 if (!partno && master->suspend && master->resume) { 398 if (!partno && !master->dev.class && master->suspend && master->resume) {
399 slave->mtd.suspend = part_suspend; 399 slave->mtd.suspend = part_suspend;
400 slave->mtd.resume = part_resume; 400 slave->mtd.resume = part_resume;
401 } 401 }