drm/msm: dpu: Use clock-names instead of assigned-clock-names
In these cases, we want to enumerate _all_ clocks, not just the ones that are assigned a rate. Signed-off-by: Sean Paul <seanpaul@chromium.org> Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
2c1f748d00
commit
41a8e8865a
|
@ -147,8 +147,7 @@ int msm_dss_parse_clock(struct platform_device *pdev,
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
mp->num_clk = 0;
|
mp->num_clk = 0;
|
||||||
num_clk = of_property_count_strings(pdev->dev.of_node,
|
num_clk = of_property_count_strings(pdev->dev.of_node, "clock-names");
|
||||||
"assigned-clock-names");
|
|
||||||
if (num_clk <= 0) {
|
if (num_clk <= 0) {
|
||||||
pr_debug("clocks are not defined\n");
|
pr_debug("clocks are not defined\n");
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -162,7 +161,7 @@ int msm_dss_parse_clock(struct platform_device *pdev,
|
||||||
|
|
||||||
for (i = 0; i < num_clk; i++) {
|
for (i = 0; i < num_clk; i++) {
|
||||||
rc = of_property_read_string_index(pdev->dev.of_node,
|
rc = of_property_read_string_index(pdev->dev.of_node,
|
||||||
"assigned-clock-names", i,
|
"clock-names", i,
|
||||||
&clock_name);
|
&clock_name);
|
||||||
if (rc) {
|
if (rc) {
|
||||||
dev_err(&pdev->dev, "Failed to get clock name for %d\n",
|
dev_err(&pdev->dev, "Failed to get clock name for %d\n",
|
||||||
|
|
Loading…
Reference in New Issue