projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa9bb09
)
dm: clk: fixed: Update to support livetree
author
Simon Glass
<sjg@chromium.org>
Fri, 19 May 2017 02:09:42 +0000
(20:09 -0600)
committer
Simon Glass
<sjg@chromium.org>
Thu, 1 Jun 2017 13:03:14 +0000
(07:03 -0600)
Update the fixed-rate clock driver to support a live device tree.
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/clk/clk_fixed_rate.c
patch
|
blob
|
history
diff --git
a/drivers/clk/clk_fixed_rate.c
b/drivers/clk/clk_fixed_rate.c
index 1cac4bbb857cad5ef39cc481e16e3ec36ae48b75..63565b6ed8d12fae68a9d122b7d88482eec6f769 100644
(file)
--- a/
drivers/clk/clk_fixed_rate.c
+++ b/
drivers/clk/clk_fixed_rate.c
@@
-31,9
+31,8
@@
const struct clk_ops clk_fixed_rate_ops = {
static int clk_fixed_rate_ofdata_to_platdata(struct udevice *dev)
{
#if !CONFIG_IS_ENABLED(OF_PLATDATA)
- to_clk_fixed_rate(dev)->fixed_rate =
- fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev),
- "clock-frequency", 0);
+ to_clk_fixed_rate(dev)->fixed_rate = dev_read_u32_default(dev,
+ "clock-frequency", 0);
#endif
return 0;