aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nv04_fbcon.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2012-07-31 02:16:21 -0400
committerBen Skeggs <bskeggs@redhat.com>2012-10-02 23:12:59 -0400
commit77145f1cbdf8d28b46ff8070ca749bad821e0774 (patch)
treeb496d5d69ce4f5753028b07b09d8cf12025310f2 /drivers/gpu/drm/nouveau/nv04_fbcon.c
parent2094dd82eddc468b53ee99d92c38b23a65efac03 (diff)
drm/nouveau: port remainder of drm code, and rip out compat layer
v2: Ben Skeggs <bskeggs@redhat.com> - fill in nouveau_pm.dev to prevent oops - fix ppc issues (build + OF shadow) Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv04_fbcon.c')
-rw-r--r--drivers/gpu/drm/nouveau/nv04_fbcon.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/nouveau/nv04_fbcon.c b/drivers/gpu/drm/nouveau/nv04_fbcon.c
index 35480b6776f8..77dcc9c50777 100644
--- a/drivers/gpu/drm/nouveau/nv04_fbcon.c
+++ b/drivers/gpu/drm/nouveau/nv04_fbcon.c
@@ -32,7 +32,7 @@ int
32nv04_fbcon_copyarea(struct fb_info *info, const struct fb_copyarea *region) 32nv04_fbcon_copyarea(struct fb_info *info, const struct fb_copyarea *region)
33{ 33{
34 struct nouveau_fbdev *nfbdev = info->par; 34 struct nouveau_fbdev *nfbdev = info->par;
35 struct nouveau_drm *drm = nouveau_newpriv(nfbdev->dev); 35 struct nouveau_drm *drm = nouveau_drm(nfbdev->dev);
36 struct nouveau_channel *chan = drm->channel; 36 struct nouveau_channel *chan = drm->channel;
37 int ret; 37 int ret;
38 38
@@ -52,7 +52,7 @@ int
52nv04_fbcon_fillrect(struct fb_info *info, const struct fb_fillrect *rect) 52nv04_fbcon_fillrect(struct fb_info *info, const struct fb_fillrect *rect)
53{ 53{
54 struct nouveau_fbdev *nfbdev = info->par; 54 struct nouveau_fbdev *nfbdev = info->par;
55 struct nouveau_drm *drm = nouveau_newpriv(nfbdev->dev); 55 struct nouveau_drm *drm = nouveau_drm(nfbdev->dev);
56 struct nouveau_channel *chan = drm->channel; 56 struct nouveau_channel *chan = drm->channel;
57 int ret; 57 int ret;
58 58
@@ -79,7 +79,7 @@ int
79nv04_fbcon_imageblit(struct fb_info *info, const struct fb_image *image) 79nv04_fbcon_imageblit(struct fb_info *info, const struct fb_image *image)
80{ 80{
81 struct nouveau_fbdev *nfbdev = info->par; 81 struct nouveau_fbdev *nfbdev = info->par;
82 struct nouveau_drm *drm = nouveau_newpriv(nfbdev->dev); 82 struct nouveau_drm *drm = nouveau_drm(nfbdev->dev);
83 struct nouveau_channel *chan = drm->channel; 83 struct nouveau_channel *chan = drm->channel;
84 uint32_t fg; 84 uint32_t fg;
85 uint32_t bg; 85 uint32_t bg;
@@ -139,7 +139,7 @@ nv04_fbcon_accel_init(struct fb_info *info)
139{ 139{
140 struct nouveau_fbdev *nfbdev = info->par; 140 struct nouveau_fbdev *nfbdev = info->par;
141 struct drm_device *dev = nfbdev->dev; 141 struct drm_device *dev = nfbdev->dev;
142 struct nouveau_drm *drm = nouveau_newpriv(dev); 142 struct nouveau_drm *drm = nouveau_drm(dev);
143 struct nouveau_channel *chan = drm->channel; 143 struct nouveau_channel *chan = drm->channel;
144 struct nouveau_device *device = nv_device(drm->device); 144 struct nouveau_device *device = nv_device(drm->device);
145 struct nouveau_object *object; 145 struct nouveau_object *object;