aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/prom.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2007-04-23 18:53:27 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 04:54:24 -0400
commit6a23acf3905287eb952a6f1dbbc8fb3e4eeae2f6 (patch)
tree71c1874e6ae1e00df81b5df5b78e3935f93f298b /arch/sparc64/kernel/prom.c
parent8271f04242af8ddf8390f289cd6ef78fb3e3c6d9 (diff)
[SPARC64]: constify of_get_property return: arch/sparc64
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/prom.c')
-rw-r--r--arch/sparc64/kernel/prom.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/arch/sparc64/kernel/prom.c b/arch/sparc64/kernel/prom.c
index 0917c24c4f08..25b70368973c 100644
--- a/arch/sparc64/kernel/prom.c
+++ b/arch/sparc64/kernel/prom.c
@@ -196,7 +196,7 @@ EXPORT_SYMBOL(of_getintprop_default);
196 196
197int of_n_addr_cells(struct device_node *np) 197int of_n_addr_cells(struct device_node *np)
198{ 198{
199 int* ip; 199 const int* ip;
200 do { 200 do {
201 if (np->parent) 201 if (np->parent)
202 np = np->parent; 202 np = np->parent;
@@ -211,7 +211,7 @@ EXPORT_SYMBOL(of_n_addr_cells);
211 211
212int of_n_size_cells(struct device_node *np) 212int of_n_size_cells(struct device_node *np)
213{ 213{
214 int* ip; 214 const int* ip;
215 do { 215 do {
216 if (np->parent) 216 if (np->parent)
217 np = np->parent; 217 np = np->parent;
@@ -397,7 +397,7 @@ static unsigned int psycho_irq_build(struct device_node *dp,
397 397
398static void psycho_irq_trans_init(struct device_node *dp) 398static void psycho_irq_trans_init(struct device_node *dp)
399{ 399{
400 struct linux_prom64_registers *regs; 400 const struct linux_prom64_registers *regs;
401 401
402 dp->irq_trans = prom_early_alloc(sizeof(struct of_irq_controller)); 402 dp->irq_trans = prom_early_alloc(sizeof(struct of_irq_controller));
403 dp->irq_trans->irq_build = psycho_irq_build; 403 dp->irq_trans->irq_build = psycho_irq_build;
@@ -547,7 +547,7 @@ static unsigned long __sabre_onboard_imap_off[] = {
547static int sabre_device_needs_wsync(struct device_node *dp) 547static int sabre_device_needs_wsync(struct device_node *dp)
548{ 548{
549 struct device_node *parent = dp->parent; 549 struct device_node *parent = dp->parent;
550 char *parent_model, *parent_compat; 550 const char *parent_model, *parent_compat;
551 551
552 /* This traversal up towards the root is meant to 552 /* This traversal up towards the root is meant to
553 * handle two cases: 553 * handle two cases:
@@ -589,7 +589,7 @@ static unsigned int sabre_irq_build(struct device_node *dp,
589{ 589{
590 struct sabre_irq_data *irq_data = _data; 590 struct sabre_irq_data *irq_data = _data;
591 unsigned long controller_regs = irq_data->controller_regs; 591 unsigned long controller_regs = irq_data->controller_regs;
592 struct linux_prom_pci_registers *regs; 592 const struct linux_prom_pci_registers *regs;
593 unsigned long imap, iclr; 593 unsigned long imap, iclr;
594 unsigned long imap_off, iclr_off; 594 unsigned long imap_off, iclr_off;
595 int inofixup = 0; 595 int inofixup = 0;
@@ -639,9 +639,9 @@ static unsigned int sabre_irq_build(struct device_node *dp,
639 639
640static void sabre_irq_trans_init(struct device_node *dp) 640static void sabre_irq_trans_init(struct device_node *dp)
641{ 641{
642 struct linux_prom64_registers *regs; 642 const struct linux_prom64_registers *regs;
643 struct sabre_irq_data *irq_data; 643 struct sabre_irq_data *irq_data;
644 u32 *busrange; 644 const u32 *busrange;
645 645
646 dp->irq_trans = prom_early_alloc(sizeof(struct of_irq_controller)); 646 dp->irq_trans = prom_early_alloc(sizeof(struct of_irq_controller));
647 dp->irq_trans->irq_build = sabre_irq_build; 647 dp->irq_trans->irq_build = sabre_irq_build;
@@ -795,7 +795,7 @@ static unsigned int schizo_irq_build(struct device_node *dp,
795 795
796static void __schizo_irq_trans_init(struct device_node *dp, int is_tomatillo) 796static void __schizo_irq_trans_init(struct device_node *dp, int is_tomatillo)
797{ 797{
798 struct linux_prom64_registers *regs; 798 const struct linux_prom64_registers *regs;
799 struct schizo_irq_data *irq_data; 799 struct schizo_irq_data *irq_data;
800 800
801 dp->irq_trans = prom_early_alloc(sizeof(struct of_irq_controller)); 801 dp->irq_trans = prom_early_alloc(sizeof(struct of_irq_controller));
@@ -836,7 +836,7 @@ static unsigned int pci_sun4v_irq_build(struct device_node *dp,
836 836
837static void pci_sun4v_irq_trans_init(struct device_node *dp) 837static void pci_sun4v_irq_trans_init(struct device_node *dp)
838{ 838{
839 struct linux_prom64_registers *regs; 839 const struct linux_prom64_registers *regs;
840 840
841 dp->irq_trans = prom_early_alloc(sizeof(struct of_irq_controller)); 841 dp->irq_trans = prom_early_alloc(sizeof(struct of_irq_controller));
842 dp->irq_trans->irq_build = pci_sun4v_irq_build; 842 dp->irq_trans->irq_build = pci_sun4v_irq_build;
@@ -940,7 +940,7 @@ static unsigned int sbus_of_build_irq(struct device_node *dp,
940 void *_data) 940 void *_data)
941{ 941{
942 unsigned long reg_base = (unsigned long) _data; 942 unsigned long reg_base = (unsigned long) _data;
943 struct linux_prom_registers *regs; 943 const struct linux_prom_registers *regs;
944 unsigned long imap, iclr; 944 unsigned long imap, iclr;
945 int sbus_slot = 0; 945 int sbus_slot = 0;
946 int sbus_level = 0; 946 int sbus_level = 0;
@@ -994,7 +994,7 @@ static unsigned int sbus_of_build_irq(struct device_node *dp,
994 994
995static void sbus_irq_trans_init(struct device_node *dp) 995static void sbus_irq_trans_init(struct device_node *dp)
996{ 996{
997 struct linux_prom64_registers *regs; 997 const struct linux_prom64_registers *regs;
998 998
999 dp->irq_trans = prom_early_alloc(sizeof(struct of_irq_controller)); 999 dp->irq_trans = prom_early_alloc(sizeof(struct of_irq_controller));
1000 dp->irq_trans->irq_build = sbus_of_build_irq; 1000 dp->irq_trans->irq_build = sbus_of_build_irq;
@@ -1080,7 +1080,7 @@ static unsigned int sun4v_vdev_irq_build(struct device_node *dp,
1080 1080
1081static void sun4v_vdev_irq_trans_init(struct device_node *dp) 1081static void sun4v_vdev_irq_trans_init(struct device_node *dp)
1082{ 1082{
1083 struct linux_prom64_registers *regs; 1083 const struct linux_prom64_registers *regs;
1084 1084
1085 dp->irq_trans = prom_early_alloc(sizeof(struct of_irq_controller)); 1085 dp->irq_trans = prom_early_alloc(sizeof(struct of_irq_controller));
1086 dp->irq_trans->irq_build = sun4v_vdev_irq_build; 1086 dp->irq_trans->irq_build = sun4v_vdev_irq_build;