diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2009-04-05 10:56:23 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-05-26 11:45:44 -0400 |
commit | 4704a78472cd5c58f6b4c4f8c04d32de2da3f20a (patch) | |
tree | dcae9ae6719c0e8fd0efc235ea3b03930e00f0ab /drivers/mtd/mtdpart.c | |
parent | ccd93854d44710adaa02cecf0ef5f24ab383dd20 (diff) |
[MTD] Only set partition suspend/resume method if parent not registered
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/mtdpart.c')
-rw-r--r-- | drivers/mtd/mtdpart.c | 2 |
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 | } |