summaryrefslogtreecommitdiff
path: root/drivers/clk/clk_zynq.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-30 21:47:29 -0600
committerSimon Glass <sjg@chromium.org>2017-06-01 07:03:14 -0600
commitaa9bb0944acecf5459971c4f0f195c59f1af1fe1 (patch)
tree388a39f78fc3db2f3f75ce35ecb2891f75705590 /drivers/clk/clk_zynq.c
parenta4e0ef50dae404939f14e46493a3d5c2111a9d4c (diff)
dm: clk: Update uclass to support livetree
Update the clk uclass to support a live device tree. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/clk/clk_zynq.c')
-rw-r--r--drivers/clk/clk_zynq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk_zynq.c b/drivers/clk/clk_zynq.c
index b9975456fa..50f2a65c20 100644
--- a/drivers/clk/clk_zynq.c
+++ b/drivers/clk/clk_zynq.c
@@ -459,7 +459,7 @@ static int zynq_clk_probe(struct udevice *dev)
for (i = 0; i < 2; i++) {
sprintf(name, "gem%d_emio_clk", i);
ret = clk_get_by_name(dev, name, &priv->gem_emio_clk[i]);
- if (ret < 0 && ret != -FDT_ERR_NOTFOUND) {
+ if (ret < 0 && ret != -ENODATA) {
dev_err(dev, "failed to get %s clock\n", name);
return ret;
}