mtd/drivers/mtd/maps amd76xrom.c, 1.17, 1.18 elan-104nc.c, 1.23, 1.24 ichxrom.c, 1.14, 1.15 l440gx.c, 1.15, 1.16 pnc2000.c, 1.16, 1.17 sbc_gxx.c, 1.31, 1.32 scb2_flash.c, 1.9, 1.10 scx200_docflash.c, 1.8, 1.9

David Woodhouse dwmw2 at infradead.org
Tue Nov 16 13:29:07 EST 2004


Update of /home/cvs/mtd/drivers/mtd/maps
In directory phoenix.infradead.org:/tmp/cvs-serv30747/maps

Modified Files:
	amd76xrom.c elan-104nc.c ichxrom.c l440gx.c pnc2000.c 
	sbc_gxx.c scb2_flash.c scx200_docflash.c 
Log Message:
Patch from Adrian Bunk <bunk at stusta.de> -- make a lot of code static.


Index: amd76xrom.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/amd76xrom.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- amd76xrom.c	18 Sep 2004 01:59:56 -0000	1.17
+++ amd76xrom.c	16 Nov 2004 18:29:02 -0000	1.18
@@ -298,7 +298,7 @@
 };
 #endif
 
-int __init init_amd76xrom(void)
+static int __init init_amd76xrom(void)
 {
 	struct pci_dev *pdev;
 	struct pci_device_id *id;

Index: elan-104nc.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/elan-104nc.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- elan-104nc.c	4 Nov 2004 13:24:14 -0000	1.23
+++ elan-104nc.c	16 Nov 2004 18:29:02 -0000	1.24
@@ -185,7 +185,7 @@
 	iounmap((void *)iomapadr);
 }
 
-int __init init_elan_104nc(void)
+static int __init init_elan_104nc(void)
 {
 	/* Urg! We use I/O port 0x22 without request_region()ing it,
 	   because it's already allocated to the PIC. */

Index: ichxrom.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/ichxrom.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- ichxrom.c	18 Sep 2004 01:59:56 -0000	1.14
+++ ichxrom.c	16 Nov 2004 18:29:02 -0000	1.15
@@ -349,7 +349,7 @@
 };
 #endif
 
-int __init init_ichxrom(void)
+static int __init init_ichxrom(void)
 {
 	struct pci_dev *pdev;
 	struct pci_device_id *id;

Index: l440gx.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/l440gx.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- l440gx.c	4 Nov 2004 13:24:15 -0000	1.15
+++ l440gx.c	16 Nov 2004 18:29:02 -0000	1.16
@@ -30,7 +30,7 @@
 
 
 /* Is this really the vpp port? */
-void l440gx_set_vpp(struct map_info *map, int vpp)
+static void l440gx_set_vpp(struct map_info *map, int vpp)
 {
 	unsigned long l;
 
@@ -43,7 +43,7 @@
 	outl(l, VPP_PORT);
 }
 
-struct map_info l440gx_map = {
+static struct map_info l440gx_map = {
 	.name = "L440GX BIOS",
 	.size = WINDOW_SIZE,
 	.bankwidth = BUSWIDTH,

Index: pnc2000.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/pnc2000.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- pnc2000.c	16 Sep 2004 23:27:13 -0000	1.16
+++ pnc2000.c	16 Nov 2004 18:29:02 -0000	1.17
@@ -26,7 +26,7 @@
  */
 
 
-struct map_info pnc_map = {
+static struct map_info pnc_map = {
 	.name = "PNC-2000",
 	.size = WINDOW_SIZE,
 	.bankwidth = 4,
@@ -62,7 +62,7 @@
  */
 static struct mtd_info *mymtd;
 
-int __init init_pnc2000(void)
+static int __init init_pnc2000(void)
 {
 	printk(KERN_NOTICE "Photron PNC-2000 flash mapping: %x at %x\n", WINDOW_SIZE, WINDOW_ADDR);
 

Index: sbc_gxx.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/sbc_gxx.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- sbc_gxx.c	4 Nov 2004 13:24:15 -0000	1.31
+++ sbc_gxx.c	16 Nov 2004 18:29:02 -0000	1.32
@@ -193,7 +193,7 @@
 	release_region(PAGE_IO,PAGE_IO_SIZE);
 }
 
-int __init init_sbc_gxx(void)
+static int __init init_sbc_gxx(void)
 {
   	iomapadr = ioremap(WINDOW_START, WINDOW_LENGTH);
 	if (!iomapadr) {

Index: scb2_flash.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/scb2_flash.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- scb2_flash.c	16 Sep 2004 23:27:14 -0000	1.9
+++ scb2_flash.c	16 Nov 2004 18:29:02 -0000	1.10
@@ -64,7 +64,7 @@
 
 static void *scb2_ioaddr;
 static struct mtd_info *scb2_mtd;
-struct map_info scb2_map = {
+static struct map_info scb2_map = {
 	.name =      "SCB2 BIOS Flash",
 	.size =      0,
 	.bankwidth =  1,

Index: scx200_docflash.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/scx200_docflash.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- scx200_docflash.c	4 Nov 2004 13:24:15 -0000	1.8
+++ scx200_docflash.c	16 Nov 2004 18:29:02 -0000	1.9
@@ -81,7 +81,7 @@
 	.name      = "NatSemi SCx200 DOCCS Flash",
 };
 
-int __init init_scx200_docflash(void)
+static int __init init_scx200_docflash(void)
 {
 	unsigned u;
 	unsigned base;





More information about the linux-mtd-cvs mailing list