From 28ffa1750f54d60a2a867319c489e5763246b0be Mon Sep 17 00:00:00 2001 From: Cyber Knight Date: Sun, 26 Sep 2021 01:53:00 +0800 Subject: [PATCH] drivers/spmi: Import OnePlus Changes Signed-off-by: Cyber Knight --- drivers/spmi/spmi-pmic-arb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index 1d5e4d4cf2d9..ddca1f2371b9 100644 --- a/drivers/spmi/spmi-pmic-arb.c +++ b/drivers/spmi/spmi-pmic-arb.c @@ -514,7 +514,7 @@ static void periph_interrupt(struct spmi_pmic_arb *pmic_arb, u16 apid) id = ffs(status) - 1; status &= ~BIT(id); irq = irq_find_mapping(pmic_arb->domain, - spec_to_hwirq(sid, per, id, apid)); + (unsigned int)spec_to_hwirq(sid, per, id, apid)); if (irq == 0) { cleanup_irq(pmic_arb, apid, id); continue;