Commit 46bda4f4 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/gr/gf100-: don't prevent module load if firmware missing

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 632b740c
......@@ -1861,8 +1861,12 @@ gf100_gr_ctor_fw(struct gf100_gr *gr, const char *fwname,
int ret;
ret = nvkm_firmware_get(device, fwname, &fw);
if (ret)
return gf100_gr_ctor_fw_legacy(gr, fwname, fuc, ret);
if (ret) {
ret = gf100_gr_ctor_fw_legacy(gr, fwname, fuc, ret);
if (ret)
return -ENODEV;
return 0;
}
fuc->size = fw->size;
fuc->data = kmemdup(fw->data, fuc->size, GFP_KERNEL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment