pinctrl: sunxi: Move setting of mux to irq type
authorHans de Goede <hdegoede@redhat.com>
Sun, 29 Jun 2014 14:11:00 +0000 (16:11 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 11 Jul 2014 12:08:24 +0000 (14:08 +0200)
commitfea6d8efd023a2438c848c049480ea67ea0bca16
treeccf7e232dfb80c3955a0e3a0c47205ce5b8b689c
parent578c0a8721278770b851ecd23c5873ceda598ae8
pinctrl: sunxi: Move setting of mux to irq type

With level triggered interrupt mask / unmask will get called for each
interrupt, doing the somewhat expensive mux setting on each unmask thus is
not a good idea. Instead add a request_resources callback and do it there.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sunxi/pinctrl-sunxi.c