From: Krzysztof Kozlowski Date: Thu, 19 Jul 2018 10:37:12 +0000 (+0200) Subject: pinctrl: samsung: Remove legacy API for handling external wakeup interrupts mask X-Git-Tag: accepted/tizen/unified/20190330.030053~167 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8096f418860079da716cd64f36d0ac11b4f85699;p=platform%2Fkernel%2Flinux-exynos.git pinctrl: samsung: Remove legacy API for handling external wakeup interrupts mask Remove the legacy, ugly API of exposing the static value of external wakeup interrupts mask, because all arch-machine users where converted to use generic implementation from pinctrl driver. Signed-off-by: Krzysztof Kozlowski Cc: Tomasz Figa Cc: Sylwester Nawrocki Acked-by: Tomasz Figa Change-Id: I002a290e7600a3dfb2146a45e6f061cb7343f2c1 --- diff --git a/drivers/pinctrl/samsung/pinctrl-exynos.c b/drivers/pinctrl/samsung/pinctrl-exynos.c index 6e8ab46..0f91c3f 100644 --- a/drivers/pinctrl/samsung/pinctrl-exynos.c +++ b/drivers/pinctrl/samsung/pinctrl-exynos.c @@ -330,13 +330,6 @@ err_domains: return ret; } -static u32 exynos_eint_wake_mask = 0xffffffff; - -u32 exynos_get_eint_wake_mask(void) -{ - return exynos_eint_wake_mask; -} - static int exynos_wkup_irq_set_wake(struct irq_data *irqd, unsigned int on) { struct irq_chip *chip = irq_data_get_irq_chip(irqd); @@ -347,10 +340,9 @@ static int exynos_wkup_irq_set_wake(struct irq_data *irqd, unsigned int on) pr_info("wake %s for irq %d\n", on ? "enabled" : "disabled", irqd->irq); if (!on) - exynos_eint_wake_mask |= bit; + our_chip->eint_wake_mask_value |= bit; else - exynos_eint_wake_mask &= ~bit; - our_chip->eint_wake_mask_value = exynos_eint_wake_mask; + our_chip->eint_wake_mask_value &= ~bit; return 0; }