diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2021-09-24 12:56:53 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-05-22 15:59:54 +1000 |
commit | bb12dd42d20f5513a8d1da225232af0a0743fd79 (patch) | |
tree | d15a5544c1250d42b5bbd5e489045926fc817089 /arch/powerpc/platforms/powermac/pic.c | |
parent | cc025916b12a452df7932da528d25b2ef2b05072 (diff) | |
download | linux-bb12dd42d20f5513a8d1da225232af0a0743fd79.tar.gz linux-bb12dd42d20f5513a8d1da225232af0a0743fd79.tar.bz2 linux-bb12dd42d20f5513a8d1da225232af0a0743fd79.zip |
powerpc/powermac: constify device_node in of_irq_parse_oldworld()
The of_irq_parse_oldworld() does not modify passed device_node so make
it a pointer to const for safety. Drop the extern while modifying the
line.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210924105653.46963-2-krzysztof.kozlowski@canonical.com
Diffstat (limited to 'arch/powerpc/platforms/powermac/pic.c')
-rw-r--r-- | arch/powerpc/platforms/powermac/pic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/powermac/pic.c b/arch/powerpc/platforms/powermac/pic.c index 71a3f62d9b5f..8c8d8e0a7d13 100644 --- a/arch/powerpc/platforms/powermac/pic.c +++ b/arch/powerpc/platforms/powermac/pic.c @@ -384,7 +384,7 @@ static void __init pmac_pic_probe_oldstyle(void) #endif } -int of_irq_parse_oldworld(struct device_node *device, int index, +int of_irq_parse_oldworld(const struct device_node *device, int index, struct of_phandle_args *out_irq) { const u32 *ints = NULL; |