diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2013-10-21 08:50:25 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2013-11-08 15:39:51 +1000 |
commit | 8613e7314ac254fdd67ed46192f021d76141e4c9 (patch) | |
tree | c6b4ef097235c4be5340b4690f7eab7cfc68d570 /drivers/gpu/drm/nouveau/core/subdev/fb/nv44.c | |
parent | drm/nv50-nvaf/fb: split the class definitions up a bit (diff) | |
download | linux-dev-8613e7314ac254fdd67ed46192f021d76141e4c9.tar.xz linux-dev-8613e7314ac254fdd67ed46192f021d76141e4c9.zip |
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/nv44.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/core/subdev/fb/nv44.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/gpu/drm/nouveau/core/subdev/fb/nv44.c b/drivers/gpu/drm/nouveau/core/subdev/fb/nv44.c index 92b4d9574494..69b81ad4f8e5 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/fb/nv44.c +++ b/drivers/gpu/drm/nouveau/core/subdev/fb/nv44.c @@ -72,7 +72,7 @@ nv44_fb_ctor(struct nouveau_object *parent, struct nouveau_object *engine, struct nv44_fb_priv *priv; int ret; - ret = nouveau_fb_create(parent, engine, oclass, &nv44_ram_oclass, &priv); + ret = nouveau_fb_create(parent, engine, oclass, &priv); *pobject = nv_object(priv); if (ret) return ret; @@ -87,12 +87,13 @@ nv44_fb_ctor(struct nouveau_object *parent, struct nouveau_object *engine, struct nouveau_oclass * -nv44_fb_oclass = &(struct nouveau_oclass) { - .handle = NV_SUBDEV(FB, 0x44), - .ofuncs = &(struct nouveau_ofuncs) { +nv44_fb_oclass = &(struct nouveau_fb_impl) { + .base.handle = NV_SUBDEV(FB, 0x44), + .base.ofuncs = &(struct nouveau_ofuncs) { .ctor = nv44_fb_ctor, .dtor = _nouveau_fb_dtor, .init = nv44_fb_init, .fini = _nouveau_fb_fini, }, -}; + .ram = &nv44_ram_oclass, +}.base; |