summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/fsl_mpic_err.c
diff options
context:
space:
mode:
authorBharat Bhushan <Bharat.Bhushan@nxp.com>2018-06-29 15:54:32 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2018-07-19 21:58:09 +1000
commitfca7bf946e31688edce446fdaa571ccf77e24687 (patch)
tree87e82200dffc020248d7a970d3202cd73dce719e /arch/powerpc/sysdev/fsl_mpic_err.c
parentfdf743c5c51d5b45db4dada39109549d2e49eb62 (diff)
powerpc/mpic: Pass first free vector number to mpic_setup_error_int()
Update the comment to account for the spurious interrupt number. The code was already accounting for it, but that was unclear because it was achieved by mpic_setup_error_int() knowing that the number it was passed was the last used vector, rather than the first free vector. So change the meaning of the argument to the first free vector and update the caller to pass 13, instead of 12, to achieve the same result. Signed-off-by: Bharat Bhushan <Bharat.Bhushan@nxp.com> [mpe: Rewrite change log] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/sysdev/fsl_mpic_err.c')
-rw-r--r--arch/powerpc/sysdev/fsl_mpic_err.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/fsl_mpic_err.c b/arch/powerpc/sysdev/fsl_mpic_err.c
index 488ec453038a..2a98837dc6ba 100644
--- a/arch/powerpc/sysdev/fsl_mpic_err.c
+++ b/arch/powerpc/sysdev/fsl_mpic_err.c
@@ -76,7 +76,7 @@ int mpic_setup_error_int(struct mpic *mpic, int intvec)
mpic->flags |= MPIC_FSL_HAS_EIMR;
/* allocate interrupt vectors for error interrupts */
for (i = MPIC_MAX_ERR - 1; i >= 0; i--)
- mpic->err_int_vecs[i] = --intvec;
+ mpic->err_int_vecs[i] = intvec--;
return 0;
}