mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
dm: clk: fixed: Update to support livetree
Update the fixed-rate clock driver to support a live device tree. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
aa9bb0944a
commit
8b92e1cd59
1 changed files with 2 additions and 3 deletions
|
@ -31,8 +31,7 @@ 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),
|
||||
to_clk_fixed_rate(dev)->fixed_rate = dev_read_u32_default(dev,
|
||||
"clock-frequency", 0);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue