diff options
author | Brian Norris <computersforpeace@gmail.com> | 2013-08-28 14:19:05 -0400 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2013-10-27 19:27:03 -0400 |
commit | 535ab9033433c00116e446beaac96503c7282fd1 (patch) | |
tree | 5af8cc3f72dc9213d5bebc5852fb19bed5e9a8c9 /drivers/mtd/lpddr | |
parent | 6b7368c2305657c5b94ff18f2c8c8a6d7040b45a (diff) |
mtd: lpddr_cmds: make function static
do_xxlock() is only used locally. This silences a sparse warning:
drivers/mtd/lpddr/lpddr_cmds.c:706:5: warning: no previous prototype for 'do_xxlock' [-Wmissing-prototypes]
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/lpddr')
-rw-r--r-- | drivers/mtd/lpddr/lpddr_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/lpddr/lpddr_cmds.c b/drivers/mtd/lpddr/lpddr_cmds.c index d3cfe26beeaa..2ef19aa0086b 100644 --- a/drivers/mtd/lpddr/lpddr_cmds.c +++ b/drivers/mtd/lpddr/lpddr_cmds.c | |||
@@ -703,7 +703,7 @@ static int lpddr_erase(struct mtd_info *mtd, struct erase_info *instr) | |||
703 | 703 | ||
704 | #define DO_XXLOCK_LOCK 1 | 704 | #define DO_XXLOCK_LOCK 1 |
705 | #define DO_XXLOCK_UNLOCK 2 | 705 | #define DO_XXLOCK_UNLOCK 2 |
706 | int do_xxlock(struct mtd_info *mtd, loff_t adr, uint32_t len, int thunk) | 706 | static int do_xxlock(struct mtd_info *mtd, loff_t adr, uint32_t len, int thunk) |
707 | { | 707 | { |
708 | int ret = 0; | 708 | int ret = 0; |
709 | struct map_info *map = mtd->priv; | 709 | struct map_info *map = mtd->priv; |