Skip to contentSkip to conversation

drivers/mtd/: small cleanups

PATCH New Adrian Bunk 1 participant 1 message Dec 13, 2005 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/mtd/: small cleanups

This patch contains the following cleanups:
- chips/sharp.c: make the needlessly global sharp_probe_init() static
- move some declarations to a header file where they belong to

---

 drivers/mtd/chips/sharp.c |    2 +-
 drivers/mtd/inftlcore.c   |    5 -----
 include/linux/mtd/inftl.h |    5 +++++
 3 files changed, 6 insertions(+), 6 deletions(-)
drivers/mtd/chips/sharp.c renamed from drivers/mtd/chips/sharp.c.old +1 -1
@@ -581,7 +581,7 @@
 
 }
 
-int __init sharp_probe_init(void)
+static int __init sharp_probe_init(void)
 {
 	printk("MTD Sharp chip driver <[email protected]>\n");
 
include/linux/mtd/inftl.h renamed from include/linux/mtd/inftl.h.old +5 -0
@@ -52,6 +52,11 @@
 int INFTL_mount(struct INFTLrecord *s);
 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 /* __MTD_INFTL_H__ */
drivers/mtd/inftlcore.c renamed from drivers/mtd/inftlcore.c.old +0 -5
@@ -47,9 +47,6 @@
  */
 #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)
 {
 	struct INFTLrecord *inftl;
@@ -885,8 +882,6 @@
 	.owner		= THIS_MODULE,
 };
 
-extern char inftlmountrev[];
-
 static int __init init_inftl(void)
 {
 	printk(KERN_INFO "INFTL: inftlcore.c $Revision: 1.19 $, "