diff options
author | Simon Glass <sjg@chromium.org> | 2017-08-29 20:15:58 (GMT) |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-09-15 11:27:48 (GMT) |
commit | bc79617fdfeb4afabb94774885447dd64d7bea6c (patch) | |
tree | 77b22f03fd35d592abe2d9f7020e79abe9875849 /drivers | |
parent | 35d503700f294b6f5dd930e2c1b0dd841f1b58fb (diff) | |
download | u-boot-bc79617fdfeb4afabb94774885447dd64d7bea6c.tar.xz |
dtoc: Put phandle args in an array
We want to support more than one phandle argument. It makes sense to use
an array for this rather than discrete struct members. Adjust the code to
support this. Rename the member to 'arg' instead of 'id'.
Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/clk/clk-uclass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c index 8b40326..83ba133 100644 --- a/drivers/clk/clk-uclass.c +++ b/drivers/clk/clk-uclass.c @@ -32,7 +32,7 @@ int clk_get_by_index_platdata(struct udevice *dev, int index, ret = uclass_get_device(UCLASS_CLK, 0, &clk->dev); if (ret) return ret; - clk->id = cells[0].id; + clk->id = cells[0].arg[0]; return 0; } |