Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit efa6a8b7 authored by Harry Wentland's avatar Harry Wentland Committed by Alex Deucher
Browse files

drm/amd/display: Use plane pointer to avoid line breaks

parent 55d9038b
Loading
Loading
Loading
Loading
+7 −4
Original line number Original line Diff line number Diff line
@@ -1328,13 +1328,16 @@ static int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev)
	}
	}


	for (i = 0; i < dm->dc->caps.max_planes; i++) {
	for (i = 0; i < dm->dc->caps.max_planes; i++) {
		mode_info->planes[i] = kzalloc(sizeof(struct amdgpu_plane),
		struct amdgpu_plane *plane;
								 GFP_KERNEL);

		if (!mode_info->planes[i]) {
		plane = kzalloc(sizeof(struct amdgpu_plane), GFP_KERNEL);
		mode_info->planes[i] = plane;

		if (!plane) {
			DRM_ERROR("KMS: Failed to allocate plane\n");
			DRM_ERROR("KMS: Failed to allocate plane\n");
			goto fail_free_planes;
			goto fail_free_planes;
		}
		}
		mode_info->planes[i]->base.type = mode_info->plane_type[i];
		plane->base.type = mode_info->plane_type[i];


		/*
		/*
		 * HACK: IGT tests expect that each plane can only have one
		 * HACK: IGT tests expect that each plane can only have one