Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252565
b: refs/heads/master
c: eea72d5
h: refs/heads/master
i:
  252563: ac38c67
v: v3
  • Loading branch information
Jamie Iles authored and David Woodhouse committed May 25, 2011
1 parent a5d9ee5 commit 70c3dfb
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 18 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ee0e87b174bb41f0310cf089262bf5dd8f95a212
refs/heads/master: eea72d5fdf59879edb2c6639b0b7cc385e0df646
4 changes: 1 addition & 3 deletions trunk/drivers/mtd/mtdcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ int add_mtd_device(struct mtd_info *mtd)
* if the requested device does not appear to be present in the list.
*/

int del_mtd_device (struct mtd_info *mtd)
int del_mtd_device(struct mtd_info *mtd)
{
int ret;
struct mtd_notifier *not;
Expand Down Expand Up @@ -723,8 +723,6 @@ void *mtd_kmalloc_up_to(const struct mtd_info *mtd, size_t *size)
return kmalloc(*size, GFP_KERNEL);
}

EXPORT_SYMBOL_GPL(add_mtd_device);
EXPORT_SYMBOL_GPL(del_mtd_device);
EXPORT_SYMBOL_GPL(get_mtd_device);
EXPORT_SYMBOL_GPL(get_mtd_device_nm);
EXPORT_SYMBOL_GPL(__get_mtd_device);
Expand Down
6 changes: 6 additions & 0 deletions trunk/drivers/mtd/mtdcore.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
extern struct mutex mtd_table_mutex;
extern struct mtd_info *__mtd_next_device(int i);

extern int add_mtd_device(struct mtd_info *mtd);
extern int del_mtd_device(struct mtd_info *mtd);
extern int add_mtd_partitions(struct mtd_info *, const struct mtd_partition *,
int);
extern int del_mtd_partitions(struct mtd_info *);

#define mtd_for_each_device(mtd) \
for ((mtd) = __mtd_next_device(0); \
(mtd) != NULL; \
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/mtd/mtdpart.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
#include <linux/mtd/partitions.h>
#include <linux/err.h>

#include "mtdcore.h"

/* Our partition linked list */
static LIST_HEAD(mtd_partitions);
static DEFINE_MUTEX(mtd_partitions_mutex);
Expand Down Expand Up @@ -376,7 +378,6 @@ int del_mtd_partitions(struct mtd_info *master)

return err;
}
EXPORT_SYMBOL(del_mtd_partitions);

static struct mtd_part *allocate_partition(struct mtd_info *master,
const struct mtd_partition *part, int partno,
Expand Down Expand Up @@ -671,7 +672,6 @@ int add_mtd_partitions(struct mtd_info *master,

return 0;
}
EXPORT_SYMBOL(add_mtd_partitions);

static DEFINE_SPINLOCK(part_parser_lock);
static LIST_HEAD(part_parsers);
Expand Down
3 changes: 0 additions & 3 deletions trunk/include/linux/mtd/mtd.h
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,6 @@ static inline uint32_t mtd_mod_by_ws(uint64_t sz, struct mtd_info *mtd)

/* Kernel-side ioctl definitions */

extern int add_mtd_device(struct mtd_info *mtd);
extern int del_mtd_device (struct mtd_info *mtd);

struct mtd_partition;

extern int mtd_device_register(struct mtd_info *master,
Expand Down
9 changes: 0 additions & 9 deletions trunk/include/linux/mtd/partitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ struct mtd_partition {

struct mtd_info;

int add_mtd_partitions(struct mtd_info *, const struct mtd_partition *, int);
int del_mtd_partitions(struct mtd_info *);

/*
* Functions dealing with the various ways of partitioning the space
*/
Expand Down Expand Up @@ -86,12 +83,6 @@ static inline int of_mtd_parse_partitions(struct device *dev,
}
#endif

#ifdef CONFIG_MTD_PARTITIONS
static inline int mtd_has_partitions(void) { return 1; }
#else
static inline int mtd_has_partitions(void) { return 0; }
#endif

#ifdef CONFIG_MTD_CMDLINE_PARTS
static inline int mtd_has_cmdlinepart(void) { return 1; }
#else
Expand Down

0 comments on commit 70c3dfb

Please sign in to comment.