diff options
author | Dave Airlie <airlied@redhat.com> | 2008-03-31 11:34:48 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-03-31 11:34:48 +1000 |
commit | 562f95ea96f08e1d73a872dc87237614292c873a (patch) | |
tree | 8e29757cd50fae8fd7ef02ef02ad65ce6cdffba0 | |
parent | 22d931f9664e1857e07ce7ab8aad760a4a22f15e (diff) |
nouveau: fix return from function..
dude kernel moduless use kernel errors :)
this fixes an oops on init when this codepath hits.
-rw-r--r-- | shared-core/nouveau_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-core/nouveau_state.c b/shared-core/nouveau_state.c index 5ed16d7a..555955d4 100644 --- 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); |