[PATCH] drivers/mtd/: small cleanups
- chips/sharp.c: make two needlessly global functions static - move some declarations to a header file where they belong to Signed-off-by: Adrian Bunk <bunk@stusta.de> Acked-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Родитель
48b192686d
Коммит
0500abf521
|
@ -64,7 +64,7 @@
|
||||||
|
|
||||||
#undef AUTOUNLOCK /* automatically unlocks blocks before erasing */
|
#undef AUTOUNLOCK /* automatically unlocks blocks before erasing */
|
||||||
|
|
||||||
struct mtd_info *sharp_probe(struct map_info *);
|
static struct mtd_info *sharp_probe(struct map_info *);
|
||||||
|
|
||||||
static int sharp_probe_map(struct map_info *map,struct mtd_info *mtd);
|
static int sharp_probe_map(struct map_info *map,struct mtd_info *mtd);
|
||||||
|
|
||||||
|
@ -96,7 +96,6 @@ struct sharp_info{
|
||||||
struct flchip chips[1];
|
struct flchip chips[1];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct mtd_info *sharp_probe(struct map_info *map);
|
|
||||||
static void sharp_destroy(struct mtd_info *mtd);
|
static void sharp_destroy(struct mtd_info *mtd);
|
||||||
|
|
||||||
static struct mtd_chip_driver sharp_chipdrv = {
|
static struct mtd_chip_driver sharp_chipdrv = {
|
||||||
|
@ -107,7 +106,7 @@ static struct mtd_chip_driver sharp_chipdrv = {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
struct mtd_info *sharp_probe(struct map_info *map)
|
static struct mtd_info *sharp_probe(struct map_info *map)
|
||||||
{
|
{
|
||||||
struct mtd_info *mtd = NULL;
|
struct mtd_info *mtd = NULL;
|
||||||
struct sharp_info *sharp = NULL;
|
struct sharp_info *sharp = NULL;
|
||||||
|
@ -581,7 +580,7 @@ static void sharp_destroy(struct mtd_info *mtd)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int __init sharp_probe_init(void)
|
static int __init sharp_probe_init(void)
|
||||||
{
|
{
|
||||||
printk("MTD Sharp chip driver <ds@lineo.com>\n");
|
printk("MTD Sharp chip driver <ds@lineo.com>\n");
|
||||||
|
|
||||||
|
|
|
@ -47,9 +47,6 @@
|
||||||
*/
|
*/
|
||||||
#define MAX_LOOPS 10000
|
#define MAX_LOOPS 10000
|
||||||
|
|
||||||
extern void INFTL_dumptables(struct INFTLrecord *inftl);
|
|
||||||
extern void INFTL_dumpVUchains(struct INFTLrecord *inftl);
|
|
||||||
|
|
||||||
static void inftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd)
|
static void inftl_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd)
|
||||||
{
|
{
|
||||||
struct INFTLrecord *inftl;
|
struct INFTLrecord *inftl;
|
||||||
|
@ -885,8 +882,6 @@ static struct mtd_blktrans_ops inftl_tr = {
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
};
|
};
|
||||||
|
|
||||||
extern char inftlmountrev[];
|
|
||||||
|
|
||||||
static int __init init_inftl(void)
|
static int __init init_inftl(void)
|
||||||
{
|
{
|
||||||
printk(KERN_INFO "INFTL: inftlcore.c $Revision: 1.19 $, "
|
printk(KERN_INFO "INFTL: inftlcore.c $Revision: 1.19 $, "
|
||||||
|
|
|
@ -52,6 +52,11 @@ struct INFTLrecord {
|
||||||
int INFTL_mount(struct INFTLrecord *s);
|
int INFTL_mount(struct INFTLrecord *s);
|
||||||
int INFTL_formatblock(struct INFTLrecord *s, int block);
|
int INFTL_formatblock(struct INFTLrecord *s, int block);
|
||||||
|
|
||||||
|
extern char inftlmountrev[];
|
||||||
|
|
||||||
|
void INFTL_dumptables(struct INFTLrecord *s);
|
||||||
|
void INFTL_dumpVUchains(struct INFTLrecord *s);
|
||||||
|
|
||||||
#endif /* __KERNEL__ */
|
#endif /* __KERNEL__ */
|
||||||
|
|
||||||
#endif /* __MTD_INFTL_H__ */
|
#endif /* __MTD_INFTL_H__ */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче