Skip to content

Commit

Permalink
[MTD] ftl.c: make code static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and David Woodhouse committed Apr 22, 2008
1 parent ed262c4 commit 5ce45d5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/mtd/ftl.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ typedef struct partition_t {
#endif
} partition_t;

void ftl_freepart(partition_t *part);

/* Partition state flags */
#define FTL_FORMATTED 0x01

Expand Down Expand Up @@ -1014,7 +1012,7 @@ static int ftl_writesect(struct mtd_blktrans_dev *dev,

/*====================================================================*/

void ftl_freepart(partition_t *part)
static void ftl_freepart(partition_t *part)
{
vfree(part->VirtualBlockMap);
part->VirtualBlockMap = NULL;
Expand Down Expand Up @@ -1069,7 +1067,7 @@ static void ftl_remove_dev(struct mtd_blktrans_dev *dev)
kfree(dev);
}

struct mtd_blktrans_ops ftl_tr = {
static struct mtd_blktrans_ops ftl_tr = {
.name = "ftl",
.major = FTL_MAJOR,
.part_bits = PART_BITS,
Expand Down

0 comments on commit 5ce45d5

Please sign in to comment.