Skip to content

Commit 57ac76e

Browse files
tklauserLey Foon Tan
authored andcommitted
nios2: constify irq_domain_ops
struct irq_domain_ops is not modified, so it can be made const. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Acked-by: Ley Foon Tan <ley.foon.tan@intel.com>
1 parent f679b31 commit 57ac76e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/nios2/kernel/irq.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static int irq_map(struct irq_domain *h, unsigned int virq,
6767
return 0;
6868
}
6969

70-
static struct irq_domain_ops irq_ops = {
70+
static const struct irq_domain_ops irq_ops = {
7171
.map = irq_map,
7272
.xlate = irq_domain_xlate_onecell,
7373
};

0 commit comments

Comments
 (0)