aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/chips/cfi_cmdset_0001.c
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2007-05-28 15:11:37 -0400
committerDavid Woodhouse <dwmw2@infradead.org>2007-06-28 15:24:31 -0400
commit029a9eb1f667ca71fe7eb3bf8962f01ac4d252a5 (patch)
treef973ec5a7b6b9603d30008a210b31686835f3938 /drivers/mtd/chips/cfi_cmdset_0001.c
parentce0f33adec9737bdfe59a10d03fed0c674136ffe (diff)
[MTD] [NOR] cfi_cmdset_0001.c: sparse fixes
Fix sparse warnings generated from cfi_cmdset_0001.c. drivers/mtd/chips/cfi_cmdset_0001.c:1783:5: warning: symbol 'cfi_intelext_erase_varsize' was not declared. Should it be static? drivers/mtd/chips/cfi_cmdset_0001.c:2258:43: warning: Using plain integer as NULL pointer Signed-off-by: Ben Dooks <ben-linux@fluff.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd/chips/cfi_cmdset_0001.c')
-rw-r--r--drivers/mtd/chips/cfi_cmdset_0001.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/chips/cfi_cmdset_0001.c b/drivers/mtd/chips/cfi_cmdset_0001.c
index 2f19fa78d24a..46d782f261e7 100644
--- a/drivers/mtd/chips/cfi_cmdset_0001.c
+++ b/drivers/mtd/chips/cfi_cmdset_0001.c
@@ -1780,7 +1780,7 @@ static int __xipram do_erase_oneblock(struct map_info *map, struct flchip *chip,
1780 return ret; 1780 return ret;
1781} 1781}
1782 1782
1783int cfi_intelext_erase_varsize(struct mtd_info *mtd, struct erase_info *instr) 1783static int cfi_intelext_erase_varsize(struct mtd_info *mtd, struct erase_info *instr)
1784{ 1784{
1785 unsigned long ofs, len; 1785 unsigned long ofs, len;
1786 int ret; 1786 int ret;
@@ -2255,7 +2255,7 @@ static void cfi_intelext_save_locks(struct mtd_info *mtd)
2255 adr = region->offset + block * len; 2255 adr = region->offset + block * len;
2256 2256
2257 status = cfi_varsize_frob(mtd, 2257 status = cfi_varsize_frob(mtd,
2258 do_getlockstatus_oneblock, adr, len, 0); 2258 do_getlockstatus_oneblock, adr, len, NULL);
2259 if (status) 2259 if (status)
2260 set_bit(block, region->lockmap); 2260 set_bit(block, region->lockmap);
2261 else 2261 else