diff options
author | Tom Rini <trini@konsulko.com> | 2019-07-24 16:24:50 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-07-24 16:24:50 -0400 |
commit | f9b65c76b4828efbf8093c6b02bee5af0045b98b (patch) | |
tree | 1429cb8e3cdfea42b63778ddf06ad0b33fb7bcf0 /drivers/timer/timer-uclass.c | |
parent | a9aa4c5700c68c070d63a391b51ea8d341b6e8a6 (diff) | |
parent | 44e02e39a91cd91aae5a28d90259d3a6996010bf (diff) |
Merge tag 'dm-pull-24jul19-take3' of https://gitlab.denx.de/u-boot/custodians/u-boot-dm
Minor driver-model fixes and tweaks
A few device-tree fixes
Binman support for extracting files from an image
Diffstat (limited to 'drivers/timer/timer-uclass.c')
-rw-r--r-- | drivers/timer/timer-uclass.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/timer/timer-uclass.c b/drivers/timer/timer-uclass.c index 12ee6eb8043..97a4c748518 100644 --- a/drivers/timer/timer-uclass.c +++ b/drivers/timer/timer-uclass.c @@ -48,6 +48,10 @@ static int timer_pre_probe(struct udevice *dev) int err; ulong ret; + /* It is possible that a timer device has a null ofnode */ + if (!dev_of_valid(dev)) + return 0; + err = clk_get_by_index(dev, 0, &timer_clk); if (!err) { ret = clk_get_rate(&timer_clk); |