Commit df8e5bc6b7b61c8b2aeaf58b6afd762d20a651dd

Authored by Adrian Bunk
Committed by Kyle McMartin
1 parent 8f47cb87eb

parisc: drivers/parisc/: make code static

Make the following needlessly global code static:

- asp.c: asp_init_chip()
- ccio-dma.c: ccio_io_pdir_entry()
- dino.c: struct dino_port_ops
- dino.c: struct dino_bios_ops
- hppb.c: struct hppb_card_head
- lasi.c: lasi_led_init()
- lasi.c: lasi_init_chip()
- lba_pci.c: struct lba_bios_ops
- sba_iommu.c: sba_io_pdir_entry()
- sba_iommu.c: sba_driver_callback()
- sba_iommu.c: sba_driver_callback()
- wax.c: wax_init_chip()

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Cc: Matthew Wilcox <matthew@wil.cx>
Cc: Grant Grundler <grundler@parisc-linux.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>

Showing 8 changed files with 12 additions and 16 deletions Side-by-side Diff

drivers/parisc/asp.c
... ... @@ -71,8 +71,7 @@
71 71 */
72 72 #define ASP_INTERRUPT_ADDR 0xf0800000
73 73  
74   -int __init
75   -asp_init_chip(struct parisc_device *dev)
  74 +static int __init asp_init_chip(struct parisc_device *dev)
76 75 {
77 76 struct gsc_irq gsc_irq;
78 77 int ret;
drivers/parisc/ccio-dma.c
... ... @@ -555,7 +555,7 @@
555 555 * (Load Coherence Index) instruction. The 8 bits used for the virtual
556 556 * index are bits 12:19 of the value returned by LCI.
557 557 */
558   -void CCIO_INLINE
  558 +static void CCIO_INLINE
559 559 ccio_io_pdir_entry(u64 *pdir_ptr, space_t sid, unsigned long vba,
560 560 unsigned long hints)
561 561 {
drivers/parisc/dino.c
... ... @@ -287,7 +287,7 @@
287 287 DINO_PORT_OUT(w, 16, 2)
288 288 DINO_PORT_OUT(l, 32, 0)
289 289  
290   -struct pci_port_ops dino_port_ops = {
  290 +static struct pci_port_ops dino_port_ops = {
291 291 .inb = dino_in8,
292 292 .inw = dino_in16,
293 293 .inl = dino_in32,
... ... @@ -690,7 +690,7 @@
690 690 }
691 691  
692 692  
693   -struct pci_bios_ops dino_bios_ops = {
  693 +static struct pci_bios_ops dino_bios_ops = {
694 694 .init = dino_bios_init,
695 695 .fixup_bus = dino_fixup_bus
696 696 };
drivers/parisc/hppb.c
... ... @@ -29,7 +29,7 @@
29 29 struct hppb_card *next;
30 30 };
31 31  
32   -struct hppb_card hppb_card_head = {
  32 +static struct hppb_card hppb_card_head = {
33 33 .hpa = 0,
34 34 .next = NULL,
35 35 };
drivers/parisc/lasi.c
... ... @@ -107,7 +107,7 @@
107 107  
108 108 #else
109 109  
110   -void __init lasi_led_init(unsigned long lasi_hpa)
  110 +static void __init lasi_led_init(unsigned long lasi_hpa)
111 111 {
112 112 unsigned long datareg;
113 113  
... ... @@ -163,8 +163,7 @@
163 163 gsc_writel(0x02, datareg);
164 164 }
165 165  
166   -int __init
167   -lasi_init_chip(struct parisc_device *dev)
  166 +static int __init lasi_init_chip(struct parisc_device *dev)
168 167 {
169 168 extern void (*chassis_power_off)(void);
170 169 struct gsc_asic *lasi;
drivers/parisc/lba_pci.c
... ... @@ -824,7 +824,7 @@
824 824 }
825 825  
826 826  
827   -struct pci_bios_ops lba_bios_ops = {
  827 +static struct pci_bios_ops lba_bios_ops = {
828 828 .init = lba_bios_init,
829 829 .fixup_bus = lba_fixup_bus,
830 830 };
drivers/parisc/sba_iommu.c
... ... @@ -561,7 +561,7 @@
561 561 * IOMMU uses little endian for the pdir.
562 562 */
563 563  
564   -void SBA_INLINE
  564 +static void SBA_INLINE
565 565 sba_io_pdir_entry(u64 *pdir_ptr, space_t sid, unsigned long vba,
566 566 unsigned long hint)
567 567 {
... ... @@ -1874,7 +1874,7 @@
1874 1874 { 0, }
1875 1875 };
1876 1876  
1877   -int sba_driver_callback(struct parisc_device *);
  1877 +static int sba_driver_callback(struct parisc_device *);
1878 1878  
1879 1879 static struct parisc_driver sba_driver = {
1880 1880 .name = MODULE_NAME,
... ... @@ -1887,8 +1887,7 @@
1887 1887 ** If so, initialize the chip and tell other partners in crime they
1888 1888 ** have work to do.
1889 1889 */
1890   -int
1891   -sba_driver_callback(struct parisc_device *dev)
  1890 +static int sba_driver_callback(struct parisc_device *dev)
1892 1891 {
1893 1892 struct sba_device *sba_dev;
1894 1893 u32 func_class;
drivers/parisc/wax.c
... ... @@ -68,8 +68,7 @@
68 68 // gsc_writel(0xFFFFFFFF, base+0x2000); /* RS232-B on Wax */
69 69 }
70 70  
71   -int __init
72   -wax_init_chip(struct parisc_device *dev)
  71 +static int __init wax_init_chip(struct parisc_device *dev)
73 72 {
74 73 struct gsc_asic *wax;
75 74 struct parisc_device *parent;