diff options
author | Petr Cvek <petrcvekcz@gmail.com> | 2019-06-20 23:39:35 +0200 |
---|---|---|
committer | Paul Burton <paul.burton@mips.com> | 2019-06-24 14:15:03 -0700 |
commit | 64a95283c3361e42a75fbe24b6390b25b38387b6 (patch) | |
tree | 15969ed601e8290e0f987362a07e7114707d7ee2 /arch/mips/lantiq | |
parent | 39588164d3c94c6519f0b826ecd05d7ee3da16c4 (diff) | |
download | linux-stable-64a95283c3361e42a75fbe24b6390b25b38387b6.tar.gz linux-stable-64a95283c3361e42a75fbe24b6390b25b38387b6.tar.bz2 linux-stable-64a95283c3361e42a75fbe24b6390b25b38387b6.zip |
MIPS: lantiq: Fix attributes of of_device_id structure
According to the checkpatch the driver structure of_device_id requires
to be const and with attribute __initconst. Change it accordingly.
Signed-off-by: Petr Cvek <petrcvekcz@gmail.com>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: hauke@hauke-m.de
Cc: john@phrozen.org
Cc: linux-mips@vger.kernel.org
Cc: openwrt-devel@lists.openwrt.org
Cc: pakahmar@hotmail.com
Diffstat (limited to 'arch/mips/lantiq')
-rw-r--r-- | arch/mips/lantiq/irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/lantiq/irq.c b/arch/mips/lantiq/irq.c index ef946eb41439..2df5d37d0a7b 100644 --- a/arch/mips/lantiq/irq.c +++ b/arch/mips/lantiq/irq.c @@ -347,7 +347,7 @@ unsigned int get_c0_compare_int(void) return CP0_LEGACY_COMPARE_IRQ; } -static struct of_device_id __initdata of_irq_ids[] = { +static const struct of_device_id of_irq_ids[] __initconst = { { .compatible = "lantiq,icu", .data = icu_of_init }, {}, }; |