提交 46bda4f4 编写于 作者: B Ben Skeggs

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

Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册