Browse Source

Merge "disp: msm: sde: Correct Demura memory parsing for single address per region"

qctecmdr 4 years ago
parent
commit
2a5878a83f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      msm/sde/sde_kms.c

+ 1 - 1
msm/sde/sde_kms.c

@@ -4381,7 +4381,7 @@ static int _sde_kms_get_demura_plane_data(struct sde_splash_data *data)
 			SDE_DEBUG("no Demura node %s! disp count: %d\n",
 			SDE_DEBUG("no Demura node %s! disp count: %d\n",
 					node_name, data->num_splash_displays);
 					node_name, data->num_splash_displays);
 			continue;
 			continue;
-		} else if (of_address_to_resource(node, i, &r)) {
+		} else if (of_address_to_resource(node, 0, &r)) {
 			SDE_ERROR("invalid data for:%s\n", node_name);
 			SDE_ERROR("invalid data for:%s\n", node_name);
 			ret = -EINVAL;
 			ret = -EINVAL;
 			break;
 			break;