From: Daniel Stone Date: Mon, 21 May 2018 14:24:49 +0000 (+0100) Subject: drm/gma500: Fix Medfield for drm_framebuffer move X-Git-Tag: v4.19~298^2~45^2~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c7cbed560ce24a87eccf219bc4c78a19961a6074;p=platform%2Fkernel%2Flinux-rpi.git drm/gma500: Fix Medfield for drm_framebuffer move Commit bc61c97502e2 ("drm/gma500: Move GEM BO to drm_framebuffer") moved the gtt_range structure, from being in psb_framebuffer and embedding the GEM object, to being placed in the drm_framebuffer with the gtt_range being derived from the GEM object. The conversion missed out the Medfield subdriver, which was not being built in the default drm-misc config. Do the trivial fixup here. Signed-off-by: Daniel Stone Reported-by: kbuild test robot Reviewed-by: Thierry Reding Fixes: bc61c97502e2 ("drm/gma500: Move GEM BO to drm_framebuffer") Cc: Patrik Jakobsson Link: https://patchwork.freedesktop.org/patch/msgid/20180521142449.20800-1-daniels@collabora.com --- diff --git a/drivers/gpu/drm/gma500/mdfld_intel_display.c b/drivers/gpu/drm/gma500/mdfld_intel_display.c index 5c06644..881d613 100644 --- a/drivers/gpu/drm/gma500/mdfld_intel_display.c +++ b/drivers/gpu/drm/gma500/mdfld_intel_display.c @@ -196,7 +196,7 @@ static int mdfld__intel_pipe_set_base(struct drm_crtc *crtc, int x, int y, if (!gma_power_begin(dev, true)) return 0; - start = psbfb->gtt->offset; + start = to_gtt_range(fb->obj[0])->offset; offset = y * fb->pitches[0] + x * fb->format->cpp[0]; REG_WRITE(map->stride, fb->pitches[0]);