diff options
author | Todd Poynor <tpoynor@mvista.com> | 2005-03-30 18:57:33 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@mtd.linutronix.de> | 2005-05-23 07:06:01 -0400 |
commit | 8048d2fc38c9559ce37b46c21fa734c5cb9bcdb2 (patch) | |
tree | d71cfb0c7429c2430725cef25a32aa0b6c0aaa17 /drivers/mtd/chips | |
parent | 9a6e73ec4906bdf44ccfaaf8db56693b146595c0 (diff) |
[MTD] Avoid compile warnings for Intel CFI flash without OTP support.
Signed-off-by: Todd Poynor <tpoynor@mvista.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/mtd/chips')
-rw-r--r-- | drivers/mtd/chips/cfi_cmdset_0001.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mtd/chips/cfi_cmdset_0001.c b/drivers/mtd/chips/cfi_cmdset_0001.c index 51675bb2f830..b482a4e48e48 100644 --- a/drivers/mtd/chips/cfi_cmdset_0001.c +++ b/drivers/mtd/chips/cfi_cmdset_0001.c | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * (C) 2000 Red Hat. GPL'd | 5 | * (C) 2000 Red Hat. GPL'd |
6 | * | 6 | * |
7 | * $Id: cfi_cmdset_0001.c,v 1.172 2005/03/29 22:06:37 tpoynor Exp $ | 7 | * $Id: cfi_cmdset_0001.c,v 1.173 2005/03/30 23:57:30 tpoynor Exp $ |
8 | * | 8 | * |
9 | * | 9 | * |
10 | * 10/10/2000 Nicolas Pitre <nico@cam.org> | 10 | * 10/10/2000 Nicolas Pitre <nico@cam.org> |
@@ -54,6 +54,7 @@ static int cfi_intelext_erase_varsize(struct mtd_info *, struct erase_info *); | |||
54 | static void cfi_intelext_sync (struct mtd_info *); | 54 | static void cfi_intelext_sync (struct mtd_info *); |
55 | static int cfi_intelext_lock(struct mtd_info *mtd, loff_t ofs, size_t len); | 55 | static int cfi_intelext_lock(struct mtd_info *mtd, loff_t ofs, size_t len); |
56 | static int cfi_intelext_unlock(struct mtd_info *mtd, loff_t ofs, size_t len); | 56 | static int cfi_intelext_unlock(struct mtd_info *mtd, loff_t ofs, size_t len); |
57 | #ifdef CONFIG_MTD_OTP | ||
57 | static int cfi_intelext_read_fact_prot_reg (struct mtd_info *, loff_t, size_t, size_t *, u_char *); | 58 | static int cfi_intelext_read_fact_prot_reg (struct mtd_info *, loff_t, size_t, size_t *, u_char *); |
58 | static int cfi_intelext_read_user_prot_reg (struct mtd_info *, loff_t, size_t, size_t *, u_char *); | 59 | static int cfi_intelext_read_user_prot_reg (struct mtd_info *, loff_t, size_t, size_t *, u_char *); |
59 | static int cfi_intelext_write_user_prot_reg (struct mtd_info *, loff_t, size_t, size_t *, u_char *); | 60 | static int cfi_intelext_write_user_prot_reg (struct mtd_info *, loff_t, size_t, size_t *, u_char *); |
@@ -62,6 +63,7 @@ static int cfi_intelext_get_fact_prot_info (struct mtd_info *, | |||
62 | struct otp_info *, size_t); | 63 | struct otp_info *, size_t); |
63 | static int cfi_intelext_get_user_prot_info (struct mtd_info *, | 64 | static int cfi_intelext_get_user_prot_info (struct mtd_info *, |
64 | struct otp_info *, size_t); | 65 | struct otp_info *, size_t); |
66 | #endif | ||
65 | static int cfi_intelext_suspend (struct mtd_info *); | 67 | static int cfi_intelext_suspend (struct mtd_info *); |
66 | static void cfi_intelext_resume (struct mtd_info *); | 68 | static void cfi_intelext_resume (struct mtd_info *); |
67 | 69 | ||