diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-04-14 10:20:24 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2008-04-22 10:56:00 -0400 |
commit | 5ce45d50056e20aca50f19229d8a7e003569ad26 (patch) | |
tree | 44cda70308cf340d7690dfadb8db1f045bf83b9f /drivers/mtd | |
parent | ed262c4f5cb8291668c27c88a022bd7628f067a4 (diff) |
[MTD] ftl.c: make code static
This patch makes the following needlessly global code static:
- ftl_freepart()
- struct ftl_tr
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/ftl.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/mtd/ftl.c b/drivers/mtd/ftl.c index c815d0f38577..4a79b187b568 100644 --- a/drivers/mtd/ftl.c +++ b/drivers/mtd/ftl.c | |||
@@ -136,8 +136,6 @@ typedef struct partition_t { | |||
136 | #endif | 136 | #endif |
137 | } partition_t; | 137 | } partition_t; |
138 | 138 | ||
139 | void ftl_freepart(partition_t *part); | ||
140 | |||
141 | /* Partition state flags */ | 139 | /* Partition state flags */ |
142 | #define FTL_FORMATTED 0x01 | 140 | #define FTL_FORMATTED 0x01 |
143 | 141 | ||
@@ -1014,7 +1012,7 @@ static int ftl_writesect(struct mtd_blktrans_dev *dev, | |||
1014 | 1012 | ||
1015 | /*====================================================================*/ | 1013 | /*====================================================================*/ |
1016 | 1014 | ||
1017 | void ftl_freepart(partition_t *part) | 1015 | static void ftl_freepart(partition_t *part) |
1018 | { | 1016 | { |
1019 | vfree(part->VirtualBlockMap); | 1017 | vfree(part->VirtualBlockMap); |
1020 | part->VirtualBlockMap = NULL; | 1018 | part->VirtualBlockMap = NULL; |
@@ -1069,7 +1067,7 @@ static void ftl_remove_dev(struct mtd_blktrans_dev *dev) | |||
1069 | kfree(dev); | 1067 | kfree(dev); |
1070 | } | 1068 | } |
1071 | 1069 | ||
1072 | struct mtd_blktrans_ops ftl_tr = { | 1070 | static struct mtd_blktrans_ops ftl_tr = { |
1073 | .name = "ftl", | 1071 | .name = "ftl", |
1074 | .major = FTL_MAJOR, | 1072 | .major = FTL_MAJOR, |
1075 | .part_bits = PART_BITS, | 1073 | .part_bits = PART_BITS, |