[MTD] Only set partition suspend/resume method if parent not registered
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Tue May 26 11:59:01 EDT 2009
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=4704a78472cd5c58f6b4c4f8c04d32de2da3f20a
Commit: 4704a78472cd5c58f6b4c4f8c04d32de2da3f20a
Parent: ccd93854d44710adaa02cecf0ef5f24ab383dd20
Author: David Woodhouse <David.Woodhouse at intel.com>
AuthorDate: Sun Apr 5 07:56:23 2009 -0700
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Tue May 26 16:45:44 2009 +0100
[MTD] Only set partition suspend/resume method if parent not registered
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
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 29675ed..63d1cd2 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,
slave->mtd.get_fact_prot_info = part_get_fact_prot_info;
if (master->sync)
slave->mtd.sync = part_sync;
- if (!partno && master->suspend && master->resume) {
+ if (!partno && !master->dev.class && master->suspend && master->resume) {
slave->mtd.suspend = part_suspend;
slave->mtd.resume = part_resume;
}
More information about the linux-mtd-cvs
mailing list