drm/nouveau/kms/nv04: use new devinit script interpreter entry-point
authorBen Skeggs <bskeggs@redhat.com>
Fri, 19 May 2017 13:59:34 +0000 (23:59 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 16 Jun 2017 04:04:45 +0000 (14:04 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/dispnv04/disp.h

index bea4543554bac8b2c796ec9d1288771d692877f9..74a8795c2c2bf16a427ecc64416e07741d9b42aa 100644 (file)
@@ -169,18 +169,10 @@ static inline void
 nouveau_bios_run_init_table(struct drm_device *dev, u16 table,
                            struct dcb_output *outp, int crtc)
 {
-       struct nouveau_drm *drm = nouveau_drm(dev);
-       struct nvkm_bios *bios = nvxx_bios(&drm->client.device);
-       struct nvbios_init init = {
-               .subdev = &bios->subdev,
-               .bios = bios,
-               .offset = table,
-               .outp = outp,
-               .crtc = crtc,
-               .execute = 1,
-       };
-
-       nvbios_exec(&init);
+       nvbios_init(&nvxx_bios(&nouveau_drm(dev)->client.device)->subdev, table,
+               init.outp = outp;
+               init.head = crtc;
+       );
 }
 
 #endif