]> git.baikalelectronics.ru Git - kernel.git/commit
clk: gpio: Really allow an optional clock= DT property
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 19 Feb 2016 03:07:44 +0000 (19:07 -0800)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 19 Feb 2016 03:10:22 +0000 (19:10 -0800)
commit52581a6cc20a96c005c8d3378425eb11523de1af
treee892282d87d09a7ffd25813dd221ec70c545e7f7
parent3fae61f90e9a60d65c258b4b3e10b26c8275383c
clk: gpio: Really allow an optional clock= DT property

We mis-merged the original patch from Russell here and so the
patch went almost all the way, except that we still failed to
probe when there wasn't a clocks property in the DT node. Allow
that case by making a negative value from
of_clk_get_parent_count() into "no parents", like the original
patch did.

Fixes: f84312bcc8ad ("clk: fix clk-gpio.c with optional clock= DT property")
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Michael Turquette <mturquette@baylibre.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk-gpio.c