diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2016-01-02 13:01:34 +0300 |
---|---|---|
committer | Michael Turquette <mturquette@baylibre.com> | 2016-01-03 10:19:50 +0300 |
commit | 7ed88aa2efa5422f9d93fd99f2a01c56e28a7409 (patch) | |
tree | 2793c57dc460bf1b969afb2f8e87dd12e89bd956 /include/dt-bindings | |
parent | 49dea76aebab80e3500cdafa5c4f4b01ec8c9c08 (diff) | |
download | linux-7ed88aa2efa5422f9d93fd99f2a01c56e28a7409.tar.xz |
clk: fix clk-gpio.c with optional clock= DT property
When the clock DT property is not given, of_clk_get_parent_count()
returns -ENOENT, which then tries to allocate -2 x 4 bytes of memory,
which of course fails, causing the whole driver to fail to create
the clock.
This causes the SolidRun platforms to fail probing the SDHCI1 interface
which is connected to the WiFi.
Fix this by detecting errno codes, skipping the allocation, and fixing
of_clk_gpio_gate_delayed_register_get() to handle a NULL parent_names
array.
Fixes: 80eeb1f0f757 ("clk: add gpio controlled clock multiplexer")
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Diffstat (limited to 'include/dt-bindings')
0 files changed, 0 insertions, 0 deletions