summaryrefslogtreecommitdiff
path: root/drivers/timer/mtk_timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/timer/mtk_timer.c')
-rw-r--r--drivers/timer/mtk_timer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/timer/mtk_timer.c b/drivers/timer/mtk_timer.c
index 8216c289837..06deb23eb99 100644
--- a/drivers/timer/mtk_timer.c
+++ b/drivers/timer/mtk_timer.c
@@ -73,7 +73,8 @@ static int mtk_timer_probe(struct udevice *dev)
return ret;
ret = clk_get_by_index(dev, 1, &parent);
- if (!ret) {
+ /* Skip setting the parent with dummy fixed-clock */
+ if (!ret && parent.dev->driver != DM_DRIVER_GET(fixed_clock)) {
ret = clk_set_parent(&clk, &parent);
if (ret)
return ret;