summaryrefslogtreecommitdiff
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2010-08-25 17:42:49 -0500
committerScott Wood <scottwood@freescale.com>2010-10-11 15:10:35 -0500
commit5b8e6bb517ea4f6d8ba9fa11c84e0373bc7ead2c (patch)
tree7163fa332c56e404374cffa5723db3a8cd8de289 /include/linux/mtd
parent8c5659a6daa2a3af75ec762d25f40dd053bed26f (diff)
downloadu-boot-imx-5b8e6bb517ea4f6d8ba9fa11c84e0373bc7ead2c.zip
u-boot-imx-5b8e6bb517ea4f6d8ba9fa11c84e0373bc7ead2c.tar.gz
u-boot-imx-5b8e6bb517ea4f6d8ba9fa11c84e0373bc7ead2c.tar.bz2
nand: remove dead code and suspend/resume
Get rid of the several "#if 0" sections that were keeping around Linux code that isn't relevant to U-Boot. Besides cluttering the code, these sections make tracking upstream changes harder, rather than easier. It's easy to discard obviously irrelevant diff hunks that patch rejects, but it's not as easy to notice hunks that apply cleanly to the #if 0 section, but *are* relevant to U-Boot and require modification elsewhere. Also remove suspend/resume, as this is not applicable to U-Boot. Removal saves 232 bytes on powerpc. Signed-off-by: Scott Wood <scottwood@freescale.com> Tested-by: Ben Gardiner <bengardiner@nanometrics.ca>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r--include/linux/mtd/mtd.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
index 16556c4..f1cdf23 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -208,10 +208,6 @@ struct mtd_info {
int (*lock) (struct mtd_info *mtd, loff_t ofs, uint64_t len);
int (*unlock) (struct mtd_info *mtd, loff_t ofs, uint64_t len);
- /* Power Management functions */
- int (*suspend) (struct mtd_info *mtd);
- void (*resume) (struct mtd_info *mtd);
-
/* Bad block management functions */
int (*block_isbad) (struct mtd_info *mtd, loff_t ofs);
int (*block_markbad) (struct mtd_info *mtd, loff_t ofs);