diff options
author | Simon Glass <sjg@chromium.org> | 2020-12-19 10:40:14 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-01-05 12:24:41 -0700 |
commit | f10643cf8a4ca006d1ad194e930cd292fd869d17 (patch) | |
tree | 66cd9383fc5dbd8e02f999d1db5562995f441b21 /board/synopsys | |
parent | 7d14ee443ca674314e0fe5c3e25f48e52a8fd5ee (diff) | |
download | u-boot-f10643cf8a4ca006d1ad194e930cd292fd869d17.zip u-boot-f10643cf8a4ca006d1ad194e930cd292fd869d17.tar.gz u-boot-f10643cf8a4ca006d1ad194e930cd292fd869d17.tar.bz2 |
dm: core: Access device ofnode through functions
At present ofnode is present in the device even if it is never used. With
of-platdata this field is not used, so can be removed. In preparation for
this, change the access to go through inline functions.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/synopsys')
-rw-r--r-- | board/synopsys/hsdk/clk-lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/synopsys/hsdk/clk-lib.c b/board/synopsys/hsdk/clk-lib.c index 1c74bfb..bd43179 100644 --- a/board/synopsys/hsdk/clk-lib.c +++ b/board/synopsys/hsdk/clk-lib.c @@ -23,8 +23,8 @@ int soc_clk_ctl(const char *name, ulong *rate, enum clk_ctl_ops ctl) /* Dummy fmeas device, just to be able to use standard clk_* api */ struct udevice fmeas = { .name = "clk-fmeas", - .node = ofnode_path("/clk-fmeas"), }; + dev_set_ofnode(&fmeas, ofnode_path("/clk-fmeas")); ret = clk_get_by_name(&fmeas, name, &clk); if (ret) { |