@@ -196,7 +196,7 @@ EXPORT_SYMBOL(of_getintprop_default);
196196
197197int of_n_addr_cells (struct device_node * np )
198198{
199- int * ip ;
199+ const int * ip ;
200200 do {
201201 if (np -> parent )
202202 np = np -> parent ;
@@ -211,7 +211,7 @@ EXPORT_SYMBOL(of_n_addr_cells);
211211
212212int of_n_size_cells (struct device_node * np )
213213{
214- int * ip ;
214+ const int * ip ;
215215 do {
216216 if (np -> parent )
217217 np = np -> parent ;
@@ -397,7 +397,7 @@ static unsigned int psycho_irq_build(struct device_node *dp,
397397
398398static void psycho_irq_trans_init (struct device_node * dp )
399399{
400- struct linux_prom64_registers * regs ;
400+ const struct linux_prom64_registers * regs ;
401401
402402 dp -> irq_trans = prom_early_alloc (sizeof (struct of_irq_controller ));
403403 dp -> irq_trans -> irq_build = psycho_irq_build ;
@@ -547,7 +547,7 @@ static unsigned long __sabre_onboard_imap_off[] = {
547547static int sabre_device_needs_wsync (struct device_node * dp )
548548{
549549 struct device_node * parent = dp -> parent ;
550- char * parent_model , * parent_compat ;
550+ const char * parent_model , * parent_compat ;
551551
552552 /* This traversal up towards the root is meant to
553553 * handle two cases:
@@ -589,7 +589,7 @@ static unsigned int sabre_irq_build(struct device_node *dp,
589589{
590590 struct sabre_irq_data * irq_data = _data ;
591591 unsigned long controller_regs = irq_data -> controller_regs ;
592- struct linux_prom_pci_registers * regs ;
592+ const struct linux_prom_pci_registers * regs ;
593593 unsigned long imap , iclr ;
594594 unsigned long imap_off , iclr_off ;
595595 int inofixup = 0 ;
@@ -639,9 +639,9 @@ static unsigned int sabre_irq_build(struct device_node *dp,
639639
640640static void sabre_irq_trans_init (struct device_node * dp )
641641{
642- struct linux_prom64_registers * regs ;
642+ const struct linux_prom64_registers * regs ;
643643 struct sabre_irq_data * irq_data ;
644- u32 * busrange ;
644+ const u32 * busrange ;
645645
646646 dp -> irq_trans = prom_early_alloc (sizeof (struct of_irq_controller ));
647647 dp -> irq_trans -> irq_build = sabre_irq_build ;
@@ -795,7 +795,7 @@ static unsigned int schizo_irq_build(struct device_node *dp,
795795
796796static void __schizo_irq_trans_init (struct device_node * dp , int is_tomatillo )
797797{
798- struct linux_prom64_registers * regs ;
798+ const struct linux_prom64_registers * regs ;
799799 struct schizo_irq_data * irq_data ;
800800
801801 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,
836836
837837static void pci_sun4v_irq_trans_init (struct device_node * dp )
838838{
839- struct linux_prom64_registers * regs ;
839+ const struct linux_prom64_registers * regs ;
840840
841841 dp -> irq_trans = prom_early_alloc (sizeof (struct of_irq_controller ));
842842 dp -> irq_trans -> irq_build = pci_sun4v_irq_build ;
@@ -940,7 +940,7 @@ static unsigned int sbus_of_build_irq(struct device_node *dp,
940940 void * _data )
941941{
942942 unsigned long reg_base = (unsigned long ) _data ;
943- struct linux_prom_registers * regs ;
943+ const struct linux_prom_registers * regs ;
944944 unsigned long imap , iclr ;
945945 int sbus_slot = 0 ;
946946 int sbus_level = 0 ;
@@ -994,7 +994,7 @@ static unsigned int sbus_of_build_irq(struct device_node *dp,
994994
995995static void sbus_irq_trans_init (struct device_node * dp )
996996{
997- struct linux_prom64_registers * regs ;
997+ const struct linux_prom64_registers * regs ;
998998
999999 dp -> irq_trans = prom_early_alloc (sizeof (struct of_irq_controller ));
10001000 dp -> irq_trans -> irq_build = sbus_of_build_irq ;
@@ -1080,7 +1080,7 @@ static unsigned int sun4v_vdev_irq_build(struct device_node *dp,
10801080
10811081static void sun4v_vdev_irq_trans_init (struct device_node * dp )
10821082{
1083- struct linux_prom64_registers * regs ;
1083+ const struct linux_prom64_registers * regs ;
10841084
10851085 dp -> irq_trans = prom_early_alloc (sizeof (struct of_irq_controller ));
10861086 dp -> irq_trans -> irq_build = sun4v_vdev_irq_build ;
0 commit comments