diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2021-09-03 13:18:43 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-02-07 11:03:10 +0100 |
commit | 66ada2907864cafa4578b92926cb8bc0a4bc8c9c (patch) | |
tree | b59bb1bec811f66ef3090bfe663b63bad6d6dba8 /arch/powerpc/sysdev/mpic.c | |
parent | powerpc/mpc86xx_hpcn: Remove obsolete statement (diff) | |
download | linux-66ada2907864cafa4578b92926cb8bc0a4bc8c9c.tar.xz linux-66ada2907864cafa4578b92926cb8bc0a4bc8c9c.zip |
powerpc/corenet: Change criteria to set MPIC_ENABLE_COREINT
Don't use ppc_md function comparison.
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/c8ef82ee5f2713f4c36eb5d2d49b0905c7472801.1630667612.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/sysdev/mpic.c')
-rw-r--r-- | arch/powerpc/sysdev/mpic.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/sysdev/mpic.c b/arch/powerpc/sysdev/mpic.c index d5cb48b61bbd..dbcbaa4c0663 100644 --- a/arch/powerpc/sysdev/mpic.c +++ b/arch/powerpc/sysdev/mpic.c @@ -1404,10 +1404,8 @@ struct mpic * __init mpic_alloc(struct device_node *node, * with device trees generated by older versions of QEMU. * fsl_version will be zero if MPIC_FSL is not set. */ - if (fsl_version < 0x400 && (flags & MPIC_ENABLE_COREINT)) { - WARN_ON(ppc_md.get_irq != mpic_get_coreint_irq); + if (fsl_version < 0x400 && (flags & MPIC_ENABLE_COREINT)) ppc_md.get_irq = mpic_get_irq; - } /* Reset */ |