pinctrl: rockchip: only enable gpio clock when it setting
authorLin Huang <hl@rock-chips.com>
Tue, 11 Aug 2015 10:12:04 +0000 (18:12 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 13 Aug 2015 12:23:26 +0000 (14:23 +0200)
commit07a06ae99ef9b8eda3ec0b69c8f477856042a511
treece0831eb88cf8e00dafb7354786c87aed7ef9978
parentc70336cc4ca1162808ee71dfe84696cb1cc91eac
pinctrl: rockchip: only enable gpio clock when it setting

gpio can keep state even the clock disable, for save power
consumption, only enable gpio clock when it setting

Signed-off-by: Lin Huang <hl@rock-chips.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Tested-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-rockchip.c