projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22d931f
)
nouveau: fix return from function..
author
Dave Airlie
<airlied@redhat.com>
Mon, 31 Mar 2008 01:34:48 +0000
(11:34 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Mon, 31 Mar 2008 01:34:48 +0000
(11:34 +1000)
dude kernel moduless use kernel errors :)
this fixes an oops on init when this codepath hits.
shared-core/nouveau_state.c
patch
|
blob
|
history
diff --git
a/shared-core/nouveau_state.c
b/shared-core/nouveau_state.c
index
5ed16d7
..
555955d
100644
(file)
--- a/
shared-core/nouveau_state.c
+++ b/
shared-core/nouveau_state.c
@@
-46,7
+46,7
@@
static int nouveau_init_card_mappings(struct drm_device *dev)
DRM_ERROR("Unable to initialize the mmio mapping (%d). "
"Please report your setup to " DRIVER_EMAIL "\n",
ret);
- return
1
;
+ return
-EINVAL
;
}
DRM_DEBUG("regs mapped ok at 0x%lx\n", dev_priv->mmio->offset);