Skip to content

Commit

Permalink
drm/msm: dpu: Use clock-names instead of assigned-clock-names
Browse files Browse the repository at this point in the history
In these cases, we want to enumerate _all_ clocks, not just the ones
that are assigned a rate.

Signed-off-by: Sean Paul <[email protected]>
Signed-off-by: Rob Clark <[email protected]>
  • Loading branch information
atseanpaul authored and robclark committed Jul 30, 2018
1 parent 2c1f748 commit 41a8e88
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/gpu/drm/msm/disp/dpu1/dpu_io_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ int msm_dss_parse_clock(struct platform_device *pdev,
return -EINVAL;

mp->num_clk = 0;
num_clk = of_property_count_strings(pdev->dev.of_node,
"assigned-clock-names");
num_clk = of_property_count_strings(pdev->dev.of_node, "clock-names");
if (num_clk <= 0) {
pr_debug("clocks are not defined\n");
return 0;
Expand All @@ -162,7 +161,7 @@ int msm_dss_parse_clock(struct platform_device *pdev,

for (i = 0; i < num_clk; i++) {
rc = of_property_read_string_index(pdev->dev.of_node,
"assigned-clock-names", i,
"clock-names", i,
&clock_name);
if (rc) {
dev_err(&pdev->dev, "Failed to get clock name for %d\n",
Expand Down

0 comments on commit 41a8e88

Please sign in to comment.