]> git.baikalelectronics.ru Git - kernel.git/commit
clk: clk-gpio-gate: Fix active low
authorMartin Fuzzey <mfuzzey@parkeon.com>
Wed, 18 Mar 2015 13:53:17 +0000 (14:53 +0100)
committerMichael Turquette <mturquette@linaro.org>
Sat, 11 Apr 2015 00:45:30 +0000 (17:45 -0700)
commita5b9e07a473794ebe22c74673a8ed9a036e5b96f
tree4facc98b896d43d2f73a4c601345f8cbdb6c090c
parent83fc02e1006134ffc795d6c95c1628a5b6555f5c
clk: clk-gpio-gate: Fix active low

The active low flag in the DT cell is currently ignored.

This occurs because of_get_named_gpio_flags() does not apply the flags
to the underlying struct gpio_desc so the test in clk_register_gpio_gate()
was bogus.

Note that this patch changes the internal kernel API for
clk_register_gpio_gate() but there are currently no other users.

Signed-off-by: Martin Fuzzey <mfuzzey@parkeon.com>
Acked-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
drivers/clk/clk-gpio-gate.c
include/linux/clk-provider.h