aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/sparc/kernel/setup.c2
-rw-r--r--arch/sparc64/kernel/pci_fire.c8
-rw-r--r--arch/sparc64/kernel/pci_psycho.c6
-rw-r--r--arch/sparc64/kernel/pci_sabre.c7
-rw-r--r--arch/sparc64/kernel/pci_schizo.c17
-rw-r--r--arch/sparc64/kernel/pci_sun4v.c5
-rw-r--r--arch/sparc64/kernel/setup.c2
-rw-r--r--arch/sparc64/kernel/vio.c2
-rw-r--r--arch/sparc64/solaris/socksys.c2
-rw-r--r--drivers/input/misc/sparcspkr.c4
-rw-r--r--fs/openpromfs/inode.c2
11 files changed, 30 insertions, 27 deletions
diff --git a/arch/sparc/kernel/setup.c b/arch/sparc/kernel/setup.c
index f8228383895a..d07bc74773aa 100644
--- a/arch/sparc/kernel/setup.c
+++ b/arch/sparc/kernel/setup.c
@@ -379,7 +379,7 @@ static void c_stop(struct seq_file *m, void *v)
379{ 379{
380} 380}
381 381
382struct seq_operations cpuinfo_op = { 382const struct seq_operations cpuinfo_op = {
383 .start =c_start, 383 .start =c_start,
384 .next = c_next, 384 .next = c_next,
385 .stop = c_stop, 385 .stop = c_stop,
diff --git a/arch/sparc64/kernel/pci_fire.c b/arch/sparc64/kernel/pci_fire.c
index fef3b37487bf..7571ed563147 100644
--- a/arch/sparc64/kernel/pci_fire.c
+++ b/arch/sparc64/kernel/pci_fire.c
@@ -30,7 +30,7 @@
30 "i" (ASI_PHYS_BYPASS_EC_E) \ 30 "i" (ASI_PHYS_BYPASS_EC_E) \
31 : "memory") 31 : "memory")
32 32
33static void pci_fire_scan_bus(struct pci_pbm_info *pbm) 33static void __init pci_fire_scan_bus(struct pci_pbm_info *pbm)
34{ 34{
35 pbm->pci_bus = pci_scan_one_pbm(pbm); 35 pbm->pci_bus = pci_scan_one_pbm(pbm);
36 36
@@ -434,8 +434,8 @@ static void pci_fire_hw_init(struct pci_pbm_info *pbm)
434 fire_write(pbm->pbm_regs + FIRE_PEC_IENAB, ~(u64)0); 434 fire_write(pbm->pbm_regs + FIRE_PEC_IENAB, ~(u64)0);
435} 435}
436 436
437static int pci_fire_pbm_init(struct pci_controller_info *p, 437static int __init pci_fire_pbm_init(struct pci_controller_info *p,
438 struct device_node *dp, u32 portid) 438 struct device_node *dp, u32 portid)
439{ 439{
440 const struct linux_prom64_registers *regs; 440 const struct linux_prom64_registers *regs;
441 struct pci_pbm_info *pbm; 441 struct pci_pbm_info *pbm;
@@ -488,7 +488,7 @@ static inline int portid_compare(u32 x, u32 y)
488 return 0; 488 return 0;
489} 489}
490 490
491void fire_pci_init(struct device_node *dp, const char *model_name) 491void __init fire_pci_init(struct device_node *dp, const char *model_name)
492{ 492{
493 struct pci_controller_info *p; 493 struct pci_controller_info *p;
494 u32 portid = of_getintprop_default(dp, "portid", 0xff); 494 u32 portid = of_getintprop_default(dp, "portid", 0xff);
diff --git a/arch/sparc64/kernel/pci_psycho.c b/arch/sparc64/kernel/pci_psycho.c
index d27ee5d528a2..0bad96e5d184 100644
--- a/arch/sparc64/kernel/pci_psycho.c
+++ b/arch/sparc64/kernel/pci_psycho.c
@@ -801,7 +801,7 @@ static void pbm_config_busmastering(struct pci_pbm_info *pbm)
801 pci_config_write8(addr, 64); 801 pci_config_write8(addr, 64);
802} 802}
803 803
804static void psycho_scan_bus(struct pci_pbm_info *pbm) 804static void __init psycho_scan_bus(struct pci_pbm_info *pbm)
805{ 805{
806 pbm_config_busmastering(pbm); 806 pbm_config_busmastering(pbm);
807 pbm->is_66mhz_capable = 0; 807 pbm->is_66mhz_capable = 0;
@@ -965,7 +965,7 @@ static void psycho_pbm_strbuf_init(struct pci_pbm_info *pbm,
965#define PSYCHO_MEMSPACE_B 0x180000000UL 965#define PSYCHO_MEMSPACE_B 0x180000000UL
966#define PSYCHO_MEMSPACE_SIZE 0x07fffffffUL 966#define PSYCHO_MEMSPACE_SIZE 0x07fffffffUL
967 967
968static void psycho_pbm_init(struct pci_controller_info *p, 968static void __init psycho_pbm_init(struct pci_controller_info *p,
969 struct device_node *dp, int is_pbm_a) 969 struct device_node *dp, int is_pbm_a)
970{ 970{
971 struct property *prop; 971 struct property *prop;
@@ -1012,7 +1012,7 @@ static void psycho_pbm_init(struct pci_controller_info *p,
1012 1012
1013#define PSYCHO_CONFIGSPACE 0x001000000UL 1013#define PSYCHO_CONFIGSPACE 0x001000000UL
1014 1014
1015void psycho_init(struct device_node *dp, char *model_name) 1015void __init psycho_init(struct device_node *dp, char *model_name)
1016{ 1016{
1017 struct linux_prom64_registers *pr_regs; 1017 struct linux_prom64_registers *pr_regs;
1018 struct pci_controller_info *p; 1018 struct pci_controller_info *p;
diff --git a/arch/sparc64/kernel/pci_sabre.c b/arch/sparc64/kernel/pci_sabre.c
index fba67c3d8809..1c5f5fa2339f 100644
--- a/arch/sparc64/kernel/pci_sabre.c
+++ b/arch/sparc64/kernel/pci_sabre.c
@@ -633,7 +633,7 @@ static void apb_init(struct pci_bus *sabre_bus)
633 } 633 }
634} 634}
635 635
636static void sabre_scan_bus(struct pci_pbm_info *pbm) 636static void __init sabre_scan_bus(struct pci_pbm_info *pbm)
637{ 637{
638 static int once; 638 static int once;
639 639
@@ -731,7 +731,8 @@ static int sabre_iommu_init(struct pci_pbm_info *pbm,
731 return 0; 731 return 0;
732} 732}
733 733
734static void sabre_pbm_init(struct pci_controller_info *p, struct pci_pbm_info *pbm, struct device_node *dp) 734static void __init sabre_pbm_init(struct pci_controller_info *p,
735 struct pci_pbm_info *pbm, struct device_node *dp)
735{ 736{
736 pbm->name = dp->full_name; 737 pbm->name = dp->full_name;
737 printk("%s: SABRE PCI Bus Module\n", pbm->name); 738 printk("%s: SABRE PCI Bus Module\n", pbm->name);
@@ -750,7 +751,7 @@ static void sabre_pbm_init(struct pci_controller_info *p, struct pci_pbm_info *p
750 pci_determine_mem_io_space(pbm); 751 pci_determine_mem_io_space(pbm);
751} 752}
752 753
753void sabre_init(struct device_node *dp, char *model_name) 754void __init sabre_init(struct device_node *dp, char *model_name)
754{ 755{
755 const struct linux_prom64_registers *pr_regs; 756 const struct linux_prom64_registers *pr_regs;
756 struct pci_controller_info *p; 757 struct pci_controller_info *p;
diff --git a/arch/sparc64/kernel/pci_schizo.c b/arch/sparc64/kernel/pci_schizo.c
index e752e75cce83..e30609362322 100644
--- a/arch/sparc64/kernel/pci_schizo.c
+++ b/arch/sparc64/kernel/pci_schizo.c
@@ -1084,7 +1084,7 @@ static void pbm_config_busmastering(struct pci_pbm_info *pbm)
1084 pci_config_write8(addr, 64); 1084 pci_config_write8(addr, 64);
1085} 1085}
1086 1086
1087static void schizo_scan_bus(struct pci_pbm_info *pbm) 1087static void __init schizo_scan_bus(struct pci_pbm_info *pbm)
1088{ 1088{
1089 pbm_config_busmastering(pbm); 1089 pbm_config_busmastering(pbm);
1090 pbm->is_66mhz_capable = 1090 pbm->is_66mhz_capable =
@@ -1333,9 +1333,9 @@ static void schizo_pbm_hw_init(struct pci_pbm_info *pbm)
1333 } 1333 }
1334} 1334}
1335 1335
1336static int schizo_pbm_init(struct pci_controller_info *p, 1336static int __init schizo_pbm_init(struct pci_controller_info *p,
1337 struct device_node *dp, u32 portid, 1337 struct device_node *dp, u32 portid,
1338 int chip_type) 1338 int chip_type)
1339{ 1339{
1340 const struct linux_prom64_registers *regs; 1340 const struct linux_prom64_registers *regs;
1341 struct pci_pbm_info *pbm; 1341 struct pci_pbm_info *pbm;
@@ -1430,7 +1430,8 @@ static inline int portid_compare(u32 x, u32 y, int chip_type)
1430 return (x == y); 1430 return (x == y);
1431} 1431}
1432 1432
1433static void __schizo_init(struct device_node *dp, char *model_name, int chip_type) 1433static void __init __schizo_init(struct device_node *dp, char *model_name,
1434 int chip_type)
1434{ 1435{
1435 struct pci_controller_info *p; 1436 struct pci_controller_info *p;
1436 struct pci_pbm_info *pbm; 1437 struct pci_pbm_info *pbm;
@@ -1474,17 +1475,17 @@ fatal_memory_error:
1474 prom_halt(); 1475 prom_halt();
1475} 1476}
1476 1477
1477void schizo_init(struct device_node *dp, char *model_name) 1478void __init schizo_init(struct device_node *dp, char *model_name)
1478{ 1479{
1479 __schizo_init(dp, model_name, PBM_CHIP_TYPE_SCHIZO); 1480 __schizo_init(dp, model_name, PBM_CHIP_TYPE_SCHIZO);
1480} 1481}
1481 1482
1482void schizo_plus_init(struct device_node *dp, char *model_name) 1483void __init schizo_plus_init(struct device_node *dp, char *model_name)
1483{ 1484{
1484 __schizo_init(dp, model_name, PBM_CHIP_TYPE_SCHIZO_PLUS); 1485 __schizo_init(dp, model_name, PBM_CHIP_TYPE_SCHIZO_PLUS);
1485} 1486}
1486 1487
1487void tomatillo_init(struct device_node *dp, char *model_name) 1488void __init tomatillo_init(struct device_node *dp, char *model_name)
1488{ 1489{
1489 __schizo_init(dp, model_name, PBM_CHIP_TYPE_TOMATILLO); 1490 __schizo_init(dp, model_name, PBM_CHIP_TYPE_TOMATILLO);
1490} 1491}
diff --git a/arch/sparc64/kernel/pci_sun4v.c b/arch/sparc64/kernel/pci_sun4v.c
index e587a372f3fe..1aa8e044b105 100644
--- a/arch/sparc64/kernel/pci_sun4v.c
+++ b/arch/sparc64/kernel/pci_sun4v.c
@@ -612,7 +612,7 @@ const struct dma_ops sun4v_dma_ops = {
612 .sync_sg_for_cpu = dma_4v_sync_sg_for_cpu, 612 .sync_sg_for_cpu = dma_4v_sync_sg_for_cpu,
613}; 613};
614 614
615static void pci_sun4v_scan_bus(struct pci_pbm_info *pbm) 615static void __init pci_sun4v_scan_bus(struct pci_pbm_info *pbm)
616{ 616{
617 struct property *prop; 617 struct property *prop;
618 struct device_node *dp; 618 struct device_node *dp;
@@ -960,7 +960,8 @@ static void pci_sun4v_msi_init(struct pci_pbm_info *pbm)
960} 960}
961#endif /* !(CONFIG_PCI_MSI) */ 961#endif /* !(CONFIG_PCI_MSI) */
962 962
963static void __init pci_sun4v_pbm_init(struct pci_controller_info *p, struct device_node *dp, u32 devhandle) 963static void __init pci_sun4v_pbm_init(struct pci_controller_info *p,
964 struct device_node *dp, u32 devhandle)
964{ 965{
965 struct pci_pbm_info *pbm; 966 struct pci_pbm_info *pbm;
966 967
diff --git a/arch/sparc64/kernel/setup.c b/arch/sparc64/kernel/setup.c
index 0f5be828ee92..a813441b358f 100644
--- a/arch/sparc64/kernel/setup.c
+++ b/arch/sparc64/kernel/setup.c
@@ -421,7 +421,7 @@ static void c_stop(struct seq_file *m, void *v)
421{ 421{
422} 422}
423 423
424struct seq_operations cpuinfo_op = { 424const struct seq_operations cpuinfo_op = {
425 .start =c_start, 425 .start =c_start,
426 .next = c_next, 426 .next = c_next,
427 .stop = c_stop, 427 .stop = c_stop,
diff --git a/arch/sparc64/kernel/vio.c b/arch/sparc64/kernel/vio.c
index 0c1ee619d814..e78b3517940b 100644
--- a/arch/sparc64/kernel/vio.c
+++ b/arch/sparc64/kernel/vio.c
@@ -131,7 +131,7 @@ void vio_unregister_driver(struct vio_driver *viodrv)
131} 131}
132EXPORT_SYMBOL(vio_unregister_driver); 132EXPORT_SYMBOL(vio_unregister_driver);
133 133
134static void __devinit vio_dev_release(struct device *dev) 134static void vio_dev_release(struct device *dev)
135{ 135{
136 kfree(to_vio_dev(dev)); 136 kfree(to_vio_dev(dev));
137} 137}
diff --git a/arch/sparc64/solaris/socksys.c b/arch/sparc64/solaris/socksys.c
index 7736411f244f..5f064183c874 100644
--- a/arch/sparc64/solaris/socksys.c
+++ b/arch/sparc64/solaris/socksys.c
@@ -54,7 +54,7 @@ extern void mykfree(void *);
54 54
55static unsigned int (*sock_poll)(struct file *, poll_table *); 55static unsigned int (*sock_poll)(struct file *, poll_table *);
56 56
57static struct file_operations socksys_file_ops = { 57static const struct file_operations socksys_file_ops = {
58 /* Currently empty */ 58 /* Currently empty */
59}; 59};
60 60
diff --git a/drivers/input/misc/sparcspkr.c b/drivers/input/misc/sparcspkr.c
index a3637d870880..fed3c375ccf3 100644
--- a/drivers/input/misc/sparcspkr.c
+++ b/drivers/input/misc/sparcspkr.c
@@ -195,7 +195,7 @@ static struct of_platform_driver ebus_beep_driver = {
195 .name = "beep", 195 .name = "beep",
196 .match_table = ebus_beep_match, 196 .match_table = ebus_beep_match,
197 .probe = ebus_beep_probe, 197 .probe = ebus_beep_probe,
198 .remove = sparcspkr_remove, 198 .remove = __devexit_p(sparcspkr_remove),
199 .shutdown = sparcspkr_shutdown, 199 .shutdown = sparcspkr_shutdown,
200}; 200};
201 201
@@ -236,7 +236,7 @@ static struct of_platform_driver isa_beep_driver = {
236 .name = "beep", 236 .name = "beep",
237 .match_table = isa_beep_match, 237 .match_table = isa_beep_match,
238 .probe = isa_beep_probe, 238 .probe = isa_beep_probe,
239 .remove = sparcspkr_remove, 239 .remove = __devexit_p(sparcspkr_remove),
240 .shutdown = sparcspkr_shutdown, 240 .shutdown = sparcspkr_shutdown,
241}; 241};
242 242
diff --git a/fs/openpromfs/inode.c b/fs/openpromfs/inode.c
index d88173840082..6b7ff1618945 100644
--- a/fs/openpromfs/inode.c
+++ b/fs/openpromfs/inode.c
@@ -131,7 +131,7 @@ static void property_stop(struct seq_file *f, void *v)
131 /* Nothing to do */ 131 /* Nothing to do */
132} 132}
133 133
134static struct seq_operations property_op = { 134static const struct seq_operations property_op = {
135 .start = property_start, 135 .start = property_start,
136 .next = property_next, 136 .next = property_next,
137 .stop = property_stop, 137 .stop = property_stop,