mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 23:27:06 +00:00
soc: fsl: qe: make qe_ic_get_{low,high}_irq static
These are only called from within qe_ic.c, so make them static. Reviewed-by: Timur Tabi <timur@kernel.org> Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: Li Yang <leoyang.li@nxp.com>
This commit is contained in:
parent
10d7930dbb
commit
5bd2022234
2 changed files with 2 additions and 12 deletions
|
@ -283,7 +283,7 @@ static const struct irq_domain_ops qe_ic_host_ops = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Return an interrupt vector or 0 if no interrupt is pending. */
|
/* Return an interrupt vector or 0 if no interrupt is pending. */
|
||||||
unsigned int qe_ic_get_low_irq(struct qe_ic *qe_ic)
|
static unsigned int qe_ic_get_low_irq(struct qe_ic *qe_ic)
|
||||||
{
|
{
|
||||||
int irq;
|
int irq;
|
||||||
|
|
||||||
|
@ -299,7 +299,7 @@ unsigned int qe_ic_get_low_irq(struct qe_ic *qe_ic)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return an interrupt vector or 0 if no interrupt is pending. */
|
/* Return an interrupt vector or 0 if no interrupt is pending. */
|
||||||
unsigned int qe_ic_get_high_irq(struct qe_ic *qe_ic)
|
static unsigned int qe_ic_get_high_irq(struct qe_ic *qe_ic)
|
||||||
{
|
{
|
||||||
int irq;
|
int irq;
|
||||||
|
|
||||||
|
|
|
@ -53,14 +53,4 @@ enum qe_ic_grp_id {
|
||||||
QE_IC_GRP_RISCB /* QE interrupt controller RISC group B */
|
QE_IC_GRP_RISCB /* QE interrupt controller RISC group B */
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef CONFIG_QUICC_ENGINE
|
|
||||||
unsigned int qe_ic_get_low_irq(struct qe_ic *qe_ic);
|
|
||||||
unsigned int qe_ic_get_high_irq(struct qe_ic *qe_ic);
|
|
||||||
#else
|
|
||||||
static inline unsigned int qe_ic_get_low_irq(struct qe_ic *qe_ic)
|
|
||||||
{ return 0; }
|
|
||||||
static inline unsigned int qe_ic_get_high_irq(struct qe_ic *qe_ic)
|
|
||||||
{ return 0; }
|
|
||||||
#endif /* CONFIG_QUICC_ENGINE */
|
|
||||||
|
|
||||||
#endif /* _ASM_POWERPC_QE_IC_H */
|
#endif /* _ASM_POWERPC_QE_IC_H */
|
||||||
|
|
Loading…
Reference in a new issue