summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/core/subdev/fb/nv10.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2013-10-20 22:50:25 (GMT)
committerBen Skeggs <bskeggs@redhat.com>2013-11-08 05:39:51 (GMT)
commit8613e7314ac254fdd67ed46192f021d76141e4c9 (patch)
treec6b4ef097235c4be5340b4690f7eab7cfc68d570 /drivers/gpu/drm/nouveau/core/subdev/fb/nv10.c
parent9ca3037e60924c8fcb53977d72efa493c821eec5 (diff)
downloadlinux-fsl-qoriq-8613e7314ac254fdd67ed46192f021d76141e4c9.tar.xz
drm/nouveau/fb: remove ram oclass argument from base fb constructor
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/subdev/fb/nv10.c')
-rw-r--r--drivers/gpu/drm/nouveau/core/subdev/fb/nv10.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/gpu/drm/nouveau/core/subdev/fb/nv10.c b/drivers/gpu/drm/nouveau/core/subdev/fb/nv10.c
index ab0ea94..ffed608 100644
--- a/drivers/gpu/drm/nouveau/core/subdev/fb/nv10.c
+++ b/drivers/gpu/drm/nouveau/core/subdev/fb/nv10.c
@@ -65,7 +65,7 @@ nv10_fb_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
struct nv10_fb_priv *priv;
int ret;
- ret = nouveau_fb_create(parent, engine, oclass, &nv10_ram_oclass, &priv);
+ ret = nouveau_fb_create(parent, engine, oclass, &priv);
*pobject = nv_object(priv);
if (ret)
return ret;
@@ -79,12 +79,13 @@ nv10_fb_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
}
struct nouveau_oclass *
-nv10_fb_oclass = &(struct nouveau_oclass) {
- .handle = NV_SUBDEV(FB, 0x10),
- .ofuncs = &(struct nouveau_ofuncs) {
+nv10_fb_oclass = &(struct nouveau_fb_impl) {
+ .base.handle = NV_SUBDEV(FB, 0x10),
+ .base.ofuncs = &(struct nouveau_ofuncs) {
.ctor = nv10_fb_ctor,
.dtor = _nouveau_fb_dtor,
.init = _nouveau_fb_init,
.fini = _nouveau_fb_fini,
},
-};
+ .ram = &nv10_ram_oclass,
+}.base;