[RFT 06/11] mmc: sdhci-brcmstb: Simplify with optional clock and dev_err_probe()
Florian Fainelli
f.fainelli at gmail.com
Wed Sep 2 15:58:28 EDT 2020
On 9/2/2020 12:36 PM, Krzysztof Kozlowski wrote:
> Only -ENOENT from devm_clk_get() means that clock is not present in
> device tree. Other errors have their own meaning and should not be
> ignored.
>
> Simplify getting the clock which is in fact optional and also use
> dev_err_probe() for handling deferred.
>
> Signed-off-by: Krzysztof Kozlowski <krzk at kernel.org>
This is actually an open coded version of devm_clk_get_optional(), so
this is fine:
Acked-by: Florian Fainelli <f.fainelli at gmail.com>
--
Florian
More information about the linux-amlogic
mailing list