diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_fbcon.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_fbcon.c b/drivers/gpu/drm/nouveau/nouveau_fbcon.c index f0ae10ca3ba9..dc1753c368e3 100644 --- a/drivers/gpu/drm/nouveau/nouveau_fbcon.c +++ b/drivers/gpu/drm/nouveau/nouveau_fbcon.c | |||
@@ -308,7 +308,8 @@ static int | |||
308 | nouveau_fbcon_create(struct drm_fb_helper *helper, | 308 | nouveau_fbcon_create(struct drm_fb_helper *helper, |
309 | struct drm_fb_helper_surface_size *sizes) | 309 | struct drm_fb_helper_surface_size *sizes) |
310 | { | 310 | { |
311 | struct nouveau_fbdev *fbcon = (struct nouveau_fbdev *)helper; | 311 | struct nouveau_fbdev *fbcon = |
312 | container_of(helper, struct nouveau_fbdev, helper); | ||
312 | struct drm_device *dev = fbcon->dev; | 313 | struct drm_device *dev = fbcon->dev; |
313 | struct nouveau_drm *drm = nouveau_drm(dev); | 314 | struct nouveau_drm *drm = nouveau_drm(dev); |
314 | struct nvif_device *device = &drm->device; | 315 | struct nvif_device *device = &drm->device; |