]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/gpu/drm/tegra/dc.c
drm/tegra: Remove bogus tegra_framebuffer structure
[karo-tx-linux.git] / drivers / gpu / drm / tegra / dc.c
index 656b2e3334a621109426806043032ae3422d9631..d35ff8be7ae8a0b95c335feba2a9aea73610111b 100644 (file)
@@ -158,7 +158,7 @@ static int tegra_crtc_mode_set(struct drm_crtc *crtc,
                               struct drm_display_mode *adjusted,
                               int x, int y, struct drm_framebuffer *old_fb)
 {
-       struct tegra_framebuffer *fb = to_tegra_fb(crtc->fb);
+       struct drm_gem_cma_object *gem = drm_fb_cma_get_gem_obj(crtc->fb, 0);
        struct tegra_dc *dc = to_tegra_dc(crtc);
        unsigned int h_dda, v_dda, bpp;
        struct tegra_dc_window win;