drm/nouveau/sw: prepare for the sharing of constructors between implementations
[deliverable/linux.git] / drivers / gpu / drm / nouveau / core / engine / software / nvc0.c
index 6eaf08e68a09470b79260d72286c8d783d10e044..69d871d7f76ee9ee653bcb9f17c8c3825659ce0b 100644 (file)
@@ -207,13 +207,13 @@ nvc0_software_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
        return 0;
 }
 
-struct nouveau_oclass
-nvc0_software_oclass = {
-       .handle = NV_ENGINE(SW, 0xc0),
-       .ofuncs = &(struct nouveau_ofuncs) {
+struct nouveau_oclass *
+nvc0_software_oclass = &(struct nv50_software_oclass) {
+       .base.handle = NV_ENGINE(SW, 0xc0),
+       .base.ofuncs = &(struct nouveau_ofuncs) {
                .ctor = nvc0_software_ctor,
                .dtor = _nouveau_software_dtor,
                .init = _nouveau_software_init,
                .fini = _nouveau_software_fini,
        },
-};
+}.base;
This page took 0.025073 seconds and 5 git commands to generate.