commit | 3d23abdd19b83cb5f1c3152c2f81dcd7d8c4ffde | [log] [tgz] |
---|---|---|
author | Sekhar Nori <nsekhar@ti.com> | Thu Jul 11 14:30:24 2019 +0530 |
committer | Simon Glass <sjg@chromium.org> | Wed Jul 24 12:54:08 2019 -0700 |
tree | b3c3ad3e6da94ba530fbcd6ee38edab4b43b0455 | |
parent | d89bb86dba4c33b2d4e91bb60df10ac91fa872c3 [diff] |
clk: initialize clk->data when using default xlate Right now when using clk_of_xlate_default(), clk->data remains un-initialized because clk_get_bulk() does not initialize memory on allocation of clock structure. This can cause problems when data is used to match if two clocks pointers are exactly the same underlying clocks, for example. Fix it by initializing clk->data to 0. Suggested-by: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com>