Commit 202648a6 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Michael Ellerman

powerpc: Constify irq_domain_ops

The irq_domain_ops are not modified by the driver and the irqdomain core
code accepts pointer to a const data.
Signed-off-by: default avatarKrzysztof Kozlowski <k.kozlowski.k@gmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 030bbdbf
...@@ -204,7 +204,7 @@ static int i8259_host_xlate(struct irq_domain *h, struct device_node *ct, ...@@ -204,7 +204,7 @@ static int i8259_host_xlate(struct irq_domain *h, struct device_node *ct,
return 0; return 0;
} }
static struct irq_domain_ops i8259_host_ops = { static const struct irq_domain_ops i8259_host_ops = {
.match = i8259_host_match, .match = i8259_host_match,
.map = i8259_host_map, .map = i8259_host_map,
.xlate = i8259_host_xlate, .xlate = i8259_host_xlate,
......
...@@ -691,7 +691,7 @@ static int ipic_host_map(struct irq_domain *h, unsigned int virq, ...@@ -691,7 +691,7 @@ static int ipic_host_map(struct irq_domain *h, unsigned int virq,
return 0; return 0;
} }
static struct irq_domain_ops ipic_host_ops = { static const struct irq_domain_ops ipic_host_ops = {
.match = ipic_host_match, .match = ipic_host_match,
.map = ipic_host_map, .map = ipic_host_map,
.xlate = irq_domain_xlate_onetwocell, .xlate = irq_domain_xlate_onetwocell,
......
...@@ -120,7 +120,7 @@ static int mpc8xx_pic_host_xlate(struct irq_domain *h, struct device_node *ct, ...@@ -120,7 +120,7 @@ static int mpc8xx_pic_host_xlate(struct irq_domain *h, struct device_node *ct,
} }
static struct irq_domain_ops mpc8xx_pic_host_ops = { static const struct irq_domain_ops mpc8xx_pic_host_ops = {
.map = mpc8xx_pic_host_map, .map = mpc8xx_pic_host_map,
.xlate = mpc8xx_pic_host_xlate, .xlate = mpc8xx_pic_host_xlate,
}; };
......
...@@ -1195,7 +1195,7 @@ static void mpic_cascade(unsigned int irq, struct irq_desc *desc) ...@@ -1195,7 +1195,7 @@ static void mpic_cascade(unsigned int irq, struct irq_desc *desc)
chip->irq_eoi(&desc->irq_data); chip->irq_eoi(&desc->irq_data);
} }
static struct irq_domain_ops mpic_host_ops = { static const struct irq_domain_ops mpic_host_ops = {
.match = mpic_host_match, .match = mpic_host_match,
.map = mpic_host_map, .map = mpic_host_map,
.xlate = mpic_host_xlate, .xlate = mpic_host_xlate,
......
...@@ -223,7 +223,7 @@ static int mv64x60_host_map(struct irq_domain *h, unsigned int virq, ...@@ -223,7 +223,7 @@ static int mv64x60_host_map(struct irq_domain *h, unsigned int virq,
return 0; return 0;
} }
static struct irq_domain_ops mv64x60_host_ops = { static const struct irq_domain_ops mv64x60_host_ops = {
.map = mv64x60_host_map, .map = mv64x60_host_map,
}; };
......
...@@ -271,7 +271,7 @@ static int qe_ic_host_map(struct irq_domain *h, unsigned int virq, ...@@ -271,7 +271,7 @@ static int qe_ic_host_map(struct irq_domain *h, unsigned int virq,
return 0; return 0;
} }
static struct irq_domain_ops qe_ic_host_ops = { static const struct irq_domain_ops qe_ic_host_ops = {
.match = qe_ic_host_match, .match = qe_ic_host_match,
.map = qe_ic_host_map, .map = qe_ic_host_map,
.xlate = irq_domain_xlate_onetwocell, .xlate = irq_domain_xlate_onetwocell,
......
...@@ -397,7 +397,7 @@ static int pci_irq_host_map(struct irq_domain *h, unsigned int virq, ...@@ -397,7 +397,7 @@ static int pci_irq_host_map(struct irq_domain *h, unsigned int virq,
return 0; return 0;
} }
static struct irq_domain_ops pci_irq_domain_ops = { static const struct irq_domain_ops pci_irq_domain_ops = {
.map = pci_irq_host_map, .map = pci_irq_host_map,
.xlate = pci_irq_host_xlate, .xlate = pci_irq_host_xlate,
}; };
......
...@@ -189,7 +189,7 @@ static int uic_host_map(struct irq_domain *h, unsigned int virq, ...@@ -189,7 +189,7 @@ static int uic_host_map(struct irq_domain *h, unsigned int virq,
return 0; return 0;
} }
static struct irq_domain_ops uic_host_ops = { static const struct irq_domain_ops uic_host_ops = {
.map = uic_host_map, .map = uic_host_map,
.xlate = irq_domain_xlate_twocell, .xlate = irq_domain_xlate_twocell,
}; };
......
...@@ -360,7 +360,7 @@ static int xics_host_xlate(struct irq_domain *h, struct device_node *ct, ...@@ -360,7 +360,7 @@ static int xics_host_xlate(struct irq_domain *h, struct device_node *ct,
return 0; return 0;
} }
static struct irq_domain_ops xics_host_ops = { static const struct irq_domain_ops xics_host_ops = {
.match = xics_host_match, .match = xics_host_match,
.map = xics_host_map, .map = xics_host_map,
.xlate = xics_host_xlate, .xlate = xics_host_xlate,
......
...@@ -179,7 +179,7 @@ static int xilinx_intc_map(struct irq_domain *h, unsigned int virq, ...@@ -179,7 +179,7 @@ static int xilinx_intc_map(struct irq_domain *h, unsigned int virq,
return 0; return 0;
} }
static struct irq_domain_ops xilinx_intc_ops = { static const struct irq_domain_ops xilinx_intc_ops = {
.map = xilinx_intc_map, .map = xilinx_intc_map,
.xlate = xilinx_intc_xlate, .xlate = xilinx_intc_xlate,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment