summaryrefslogtreecommitdiffstats
path: root/include/linux/clk-provider.h
diff options
context:
space:
mode:
authorMartin Fuzzey <mfuzzey@parkeon.com>2015-03-18 14:53:17 +0100
committerMichael Turquette <mturquette@linaro.org>2015-04-10 17:45:30 -0700
commit820ad9752c232239d3278eafe71c2c251ae233d3 (patch)
tree4facc98b896d43d2f73a4c601345f8cbdb6c090c /include/linux/clk-provider.h
parent9a74ccdbbb8fa6302ae1ba606f2ef0c03d3242ab (diff)
downloadop-kernel-dev-820ad9752c232239d3278eafe71c2c251ae233d3.zip
op-kernel-dev-820ad9752c232239d3278eafe71c2c251ae233d3.tar.gz
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>
Diffstat (limited to 'include/linux/clk-provider.h')
-rw-r--r--include/linux/clk-provider.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h
index 5591ea7..df69531 100644
--- a/include/linux/clk-provider.h
+++ b/include/linux/clk-provider.h
@@ -541,7 +541,7 @@ struct clk_gpio {
extern const struct clk_ops clk_gpio_gate_ops;
struct clk *clk_register_gpio_gate(struct device *dev, const char *name,
- const char *parent_name, struct gpio_desc *gpio,
+ const char *parent_name, unsigned gpio, bool active_low,
unsigned long flags);
void of_gpio_clk_gate_setup(struct device_node *node);
OpenPOWER on IntegriCloud