@@ -340,7 +340,7 @@ static int of_bus_default_flags_match(struct device_node *np)
340
340
* Array of bus specific translators
341
341
*/
342
342
343
- static struct of_bus of_busses [] = {
343
+ static const struct of_bus of_busses [] = {
344
344
#ifdef CONFIG_PCI
345
345
/* PCI */
346
346
{
@@ -388,7 +388,7 @@ static struct of_bus of_busses[] = {
388
388
},
389
389
};
390
390
391
- static struct of_bus * of_match_bus (struct device_node * np )
391
+ static const struct of_bus * of_match_bus (struct device_node * np )
392
392
{
393
393
int i ;
394
394
@@ -419,8 +419,8 @@ static int of_empty_ranges_quirk(const struct device_node *np)
419
419
return false;
420
420
}
421
421
422
- static int of_translate_one (struct device_node * parent , struct of_bus * bus ,
423
- struct of_bus * pbus , __be32 * addr ,
422
+ static int of_translate_one (const struct device_node * parent , const struct of_bus * bus ,
423
+ const struct of_bus * pbus , __be32 * addr ,
424
424
int na , int ns , int pna , const char * rprop )
425
425
{
426
426
const __be32 * ranges ;
@@ -505,7 +505,7 @@ static u64 __of_translate_address(struct device_node *node,
505
505
{
506
506
struct device_node * dev __free (device_node ) = of_node_get (node );
507
507
struct device_node * parent __free (device_node ) = get_parent (dev );
508
- struct of_bus * bus , * pbus ;
508
+ const struct of_bus * bus , * pbus ;
509
509
__be32 addr [OF_MAX_ADDR_CELLS ];
510
510
int na , ns , pna , pns ;
511
511
@@ -690,7 +690,7 @@ const __be32 *__of_get_address(struct device_node *dev, int index, int bar_no,
690
690
const __be32 * prop ;
691
691
unsigned int psize ;
692
692
struct device_node * parent __free (device_node ) = of_get_parent (dev );
693
- struct of_bus * bus ;
693
+ const struct of_bus * bus ;
694
694
int onesize , i , na , ns ;
695
695
696
696
if (parent == NULL )
0 commit comments