mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
pinctrl: mediatek: eint: Drop base from mtk_eint_chip_write_mask()
When support for multiple EINT base addresses was added in commit3ef9f710ef("pinctrl: mediatek: Add EINT support for multiple addresses"), mtk_eint_chip_write_mask() was changed to write interrupt masks for all base addresses in one call. However the "base" parameter was left around and now causes sparse warnings: mtk-eint.c:428:44: warning: incorrect type in argument 2 (different address spaces) mtk-eint.c:428:44: expected void [noderef] __iomem *base mtk-eint.c:428:44: got void [noderef] __iomem **base mtk-eint.c:436:44: warning: incorrect type in argument 2 (different address spaces) mtk-eint.c:436:44: expected void [noderef] __iomem *base mtk-eint.c:436:44: got void [noderef] __iomem **base Since the "base" parameter is no longer needed, just drop it. Fixes:3ef9f710ef("pinctrl: mediatek: Add EINT support for multiple addresses") Cc: Hao Chang <ot_chhao.chang@mediatek.com> Cc: Qingliang Li <qingliang.li@mediatek.com> Signed-off-by: Chen-Yu Tsai <wenst@chromium.org> Signed-off-by: Linus Walleij <linusw@kernel.org>
This commit is contained in:
parent
87182ef0bf
commit
3ca99eed04
|
|
@ -246,7 +246,7 @@ static int mtk_eint_irq_set_wake(struct irq_data *d, unsigned int on)
|
|||
}
|
||||
|
||||
static void mtk_eint_chip_write_mask(const struct mtk_eint *eint,
|
||||
void __iomem *base, unsigned int **buf)
|
||||
unsigned int **buf)
|
||||
{
|
||||
int inst, port, port_num;
|
||||
void __iomem *reg;
|
||||
|
|
@ -425,7 +425,7 @@ static void mtk_eint_irq_handler(struct irq_desc *desc)
|
|||
|
||||
int mtk_eint_do_suspend(struct mtk_eint *eint)
|
||||
{
|
||||
mtk_eint_chip_write_mask(eint, eint->base, eint->wake_mask);
|
||||
mtk_eint_chip_write_mask(eint, eint->wake_mask);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -433,7 +433,7 @@ EXPORT_SYMBOL_GPL(mtk_eint_do_suspend);
|
|||
|
||||
int mtk_eint_do_resume(struct mtk_eint *eint)
|
||||
{
|
||||
mtk_eint_chip_write_mask(eint, eint->base, eint->cur_mask);
|
||||
mtk_eint_chip_write_mask(eint, eint->cur_mask);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user