projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccd9385
)
[MTD] Only set partition suspend/resume method if parent not registered
author
David Woodhouse
<David.Woodhouse@intel.com>
Sun, 5 Apr 2009 14:56:23 +0000
(07:56 -0700)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Tue, 26 May 2009 15:45:44 +0000
(16:45 +0100)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtdpart.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/mtdpart.c
b/drivers/mtd/mtdpart.c
index
29675ed
..
63d1cd2
100644
(file)
--- 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;
}