From: Alexandre Courbot Date: Tue, 12 Aug 2014 22:16:53 +0000 (-0700) Subject: drm/nouveau/platform: fix compilation error X-Git-Tag: v4.9.8~5774^2^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4898ac046d24894d7b2a5a96a1cff4e095844323;p=platform%2Fkernel%2Flinux-rpi3.git drm/nouveau/platform: fix compilation error nouveau_platform.c was still using the old nouveau_dev() macro, triggering a compilation error. Fix this. Signed-off-by: Alexandre Courbot Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/nouveau_platform.c b/drivers/gpu/drm/nouveau/nouveau_platform.c index 0ffeb50..246a824 100644 --- a/drivers/gpu/drm/nouveau/nouveau_platform.c +++ b/drivers/gpu/drm/nouveau/nouveau_platform.c @@ -149,7 +149,8 @@ power_down: static int nouveau_platform_remove(struct platform_device *pdev) { struct drm_device *drm_dev = platform_get_drvdata(pdev); - struct nouveau_device *device = nouveau_dev(drm_dev); + struct nouveau_drm *drm = nouveau_drm(drm_dev); + struct nouveau_device *device = nvkm_device(&drm->device); struct nouveau_platform_gpu *gpu = nv_device_to_platform(device)->gpu; nouveau_drm_device_remove(drm_dev);