drm/nv50: fix suspend/resume delays without firmware present

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
Ben Skeggs 2009-12-16 15:07:45 +10:00
parent 0735f62e11
commit 65ec01a940

View file

@ -56,6 +56,9 @@ nouveau_grctx_prog_load(struct drm_device *dev)
char name[32]; char name[32];
int ret, i; int ret, i;
if (pgraph->accel_blocked)
return -ENODEV;
if (!pgraph->ctxprog) { if (!pgraph->ctxprog) {
sprintf(name, "nouveau/nv%02x.ctxprog", chipset); sprintf(name, "nouveau/nv%02x.ctxprog", chipset);
ret = request_firmware(&fw, name, &dev->pdev->dev); ret = request_firmware(&fw, name, &dev->pdev->dev);