Skip to content
Snippets Groups Projects
Commit 8b92e1cd authored by Simon Glass's avatar Simon Glass
Browse files

dm: clk: fixed: Update to support livetree


Update the fixed-rate clock driver to support a live device tree.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent aa9bb094
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment