summaryrefslogtreecommitdiff
path: root/arch/mips/ath25/ar5312.c
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2022-02-07 22:18:15 +0100
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2022-02-22 09:39:03 +0100
commit0ccd7890461f391e57b4abce808e31435c779b90 (patch)
treef0e9a6678c1b904e1410e79a285267c908025840 /arch/mips/ath25/ar5312.c
parentb7c8c2c6b1b1329893675b76722144fee7242d29 (diff)
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>
Diffstat (limited to 'arch/mips/ath25/ar5312.c')
-rw-r--r--arch/mips/ath25/ar5312.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/ath25/ar5312.c b/arch/mips/ath25/ar5312.c
index 822b639dbd1e..cfa103518113 100644
--- a/arch/mips/ath25/ar5312.c
+++ b/arch/mips/ath25/ar5312.c
@@ -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,
};