Explorar o código

irq_domain/c6x: constify irq_domain structures

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Cc: Mark Salter <msalter@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Grant Likely %!s(int64=13) %!d(string=hai) anos
pai
achega
15a25980d4
Modificáronse 3 ficheiros con 3 adicións e 3 borrados
  1. 1 1
      arch/arm/common/gic.c
  2. 1 1
      arch/c6x/kernel/irq.c
  3. 1 1
      arch/c6x/platforms/megamod-pic.c

+ 1 - 1
arch/arm/common/gic.c

@@ -635,7 +635,7 @@ static int gic_irq_domain_xlate(struct irq_domain *d,
 	return 0;
 }
 
-struct irq_domain_ops gic_irq_domain_ops = {
+const struct irq_domain_ops gic_irq_domain_ops = {
 	.map = gic_irq_domain_map,
 	.xlate = gic_irq_domain_xlate,
 };

+ 1 - 1
arch/c6x/kernel/irq.c

@@ -86,7 +86,7 @@ static int core_domain_map(struct irq_domain *h, unsigned int virq,
 	return 0;
 }
 
-static struct irq_domain_ops core_domain_ops = {
+static const struct irq_domain_ops core_domain_ops = {
 	.map = core_domain_map,
 };
 

+ 1 - 1
arch/c6x/platforms/megamod-pic.c

@@ -148,7 +148,7 @@ static int megamod_xlate(struct irq_domain *h, struct device_node *ct,
 	return 0;
 }
 
-static struct irq_domain_ops megamod_domain_ops = {
+static const struct irq_domain_ops megamod_domain_ops = {
 	.map	= megamod_map,
 	.xlate	= megamod_xlate,
 };