We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5266ca commit 45dac13Copy full SHA for 45dac13
drivers/gpu/drm/msm/msm_mdss.c
@@ -47,15 +47,17 @@ struct msm_mdss {
47
static int msm_mdss_parse_data_bus_icc_path(struct device *dev,
48
struct msm_mdss *msm_mdss)
49
{
50
- struct icc_path *path0 = of_icc_get(dev, "mdp0-mem");
51
- struct icc_path *path1 = of_icc_get(dev, "mdp1-mem");
+ struct icc_path *path0;
+ struct icc_path *path1;
52
53
+ path0 = of_icc_get(dev, "mdp0-mem");
54
if (IS_ERR_OR_NULL(path0))
55
return PTR_ERR_OR_ZERO(path0);
56
57
msm_mdss->path[0] = path0;
58
msm_mdss->num_paths = 1;
59
60
+ path1 = of_icc_get(dev, "mdp1-mem");
61
if (!IS_ERR_OR_NULL(path1)) {
62
msm_mdss->path[1] = path1;
63
msm_mdss->num_paths++;
0 commit comments