MIPS: ath25: Constify static irq_domain_ops
The only usage of these structs is to pass their address to either irq_domain_add_tree() or irq_domain_create_linear(), both which takes pointers to const struct irq_domain_ops. Make them const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
parent
b7c8c2c6b1
commit
0ccd789046
|
@ -112,7 +112,7 @@ static int ar2315_misc_irq_map(struct irq_domain *d, unsigned irq,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static struct irq_domain_ops ar2315_misc_irq_domain_ops = {
|
||||
static const struct irq_domain_ops ar2315_misc_irq_domain_ops = {
|
||||
.map = ar2315_misc_irq_map,
|
||||
};
|
||||
|
||||
|
|
|
@ -116,7 +116,7 @@ static int ar5312_misc_irq_map(struct irq_domain *d, unsigned irq,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static struct irq_domain_ops ar5312_misc_irq_domain_ops = {
|
||||
static const struct irq_domain_ops ar5312_misc_irq_domain_ops = {
|
||||
.map = ar5312_misc_irq_map,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue