]> git.baikalelectronics.ru Git - uboot.git/commit
clk: do not attempt to fetch clock pointer with null device
authorTero Kristo <t-kristo@ti.com>
Fri, 11 Jun 2021 08:45:08 +0000 (11:45 +0300)
committerLokesh Vutla <lokeshvutla@ti.com>
Fri, 11 Jun 2021 11:04:52 +0000 (16:34 +0530)
commite2e0faf95b90171d750f70bd2617cbdd6607fb39
tree951774dcb8e1ba683a236b5007a34073644b6f5c
parent62e52d5a9bb4ea24c13e1c24e142f9bf6c58f6ff
clk: do not attempt to fetch clock pointer with null device

Bail out early if device returned for the parent clock is null.
This avoids warning prints like this when doing clk dump:

  dev_get_uclass_priv: null device

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tero Kristo <kristo@kernel.org>
drivers/clk/clk-uclass.c