소스 검색

drm/nouveau/dispnv04: fix build on powerpc

align with mask code in overlay.c, Ben can clean the naming
up later if necessary.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Dave Airlie 10 년 전
부모
커밋
92cffd56b2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      drivers/gpu/drm/nouveau/dispnv04/dfp.c

+ 1 - 1
drivers/gpu/drm/nouveau/dispnv04/dfp.c

@@ -485,7 +485,7 @@ static void nv04_dfp_update_backlight(struct drm_encoder *encoder, int mode)
 {
 {
 #ifdef __powerpc__
 #ifdef __powerpc__
 	struct drm_device *dev = encoder->dev;
 	struct drm_device *dev = encoder->dev;
-	struct nvif_device *device = &nouveau_drm(dev)->device;
+	struct nvif_object *device = &nouveau_drm(dev)->device.object;
 
 
 	/* BIOS scripts usually take care of the backlight, thanks
 	/* BIOS scripts usually take care of the backlight, thanks
 	 * Apple for your consistency.
 	 * Apple for your consistency.