diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c index 24629bec181a..838943d0962e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | |||
@@ -245,7 +245,7 @@ static int amdgpufb_create(struct drm_fb_helper *helper, | |||
245 | 245 | ||
246 | strcpy(info->fix.id, "amdgpudrmfb"); | 246 | strcpy(info->fix.id, "amdgpudrmfb"); |
247 | 247 | ||
248 | drm_fb_helper_fill_fix(info, fb->pitches[0], fb->depth); | 248 | drm_fb_helper_fill_fix(info, fb->pitches[0], fb->format->depth); |
249 | 249 | ||
250 | info->flags = FBINFO_DEFAULT | FBINFO_CAN_FORCE_OUTPUT; | 250 | info->flags = FBINFO_DEFAULT | FBINFO_CAN_FORCE_OUTPUT; |
251 | info->fbops = &amdgpufb_ops; | 251 | info->fbops = &amdgpufb_ops; |
@@ -272,7 +272,7 @@ static int amdgpufb_create(struct drm_fb_helper *helper, | |||
272 | DRM_INFO("fb mappable at 0x%lX\n", info->fix.smem_start); | 272 | DRM_INFO("fb mappable at 0x%lX\n", info->fix.smem_start); |
273 | DRM_INFO("vram apper at 0x%lX\n", (unsigned long)adev->mc.aper_base); | 273 | DRM_INFO("vram apper at 0x%lX\n", (unsigned long)adev->mc.aper_base); |
274 | DRM_INFO("size %lu\n", (unsigned long)amdgpu_bo_size(abo)); | 274 | DRM_INFO("size %lu\n", (unsigned long)amdgpu_bo_size(abo)); |
275 | DRM_INFO("fb depth is %d\n", fb->depth); | 275 | DRM_INFO("fb depth is %d\n", fb->format->depth); |
276 | DRM_INFO(" pitch is %d\n", fb->pitches[0]); | 276 | DRM_INFO(" pitch is %d\n", fb->pitches[0]); |
277 | 277 | ||
278 | vga_switcheroo_client_fb_set(adev->ddev->pdev, info); | 278 | vga_switcheroo_client_fb_set(adev->ddev->pdev, info); |