From: Ben Skeggs Date: Tue, 18 Nov 2014 00:51:19 +0000 (+1000) Subject: drm/nouveau/core: allow vbios parsing without knowing chipset type X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ddbb55ab04db3edbc2d0910c5060c025a9ae4425;p=linux-beck.git drm/nouveau/core: allow vbios parsing without knowing chipset type Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/core/engine/device/base.c b/drivers/gpu/drm/nouveau/core/engine/device/base.c index 9262f27904c8..137e0b0faeae 100644 --- a/drivers/gpu/drm/nouveau/core/engine/device/base.c +++ b/drivers/gpu/drm/nouveau/core/engine/device/base.c @@ -29,6 +29,7 @@ #include #include +#include #include #include @@ -432,6 +433,10 @@ nouveau_devobj_ctor(struct nouveau_object *parent, } nv_debug(device, "crystal freq: %dKHz\n", device->crystal); + } else + if ( (args->v0.disable & NV_DEVICE_V0_DISABLE_IDENTIFY)) { + device->cname = "NULL"; + device->oclass[NVDEV_SUBDEV_VBIOS] = &nouveau_bios_oclass; } if (!(args->v0.disable & NV_DEVICE_V0_DISABLE_MMIO) &&