projects
/
profile
/
common
/
kernel-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4837d2
)
drm/nouveau/device: return proper error codes if ioremap fails
author
Ben Skeggs
<bskeggs@redhat.com>
Mon, 6 Aug 2012 06:31:26 +0000
(16:31 +1000)
committer
Ben Skeggs
<bskeggs@redhat.com>
Wed, 3 Oct 2012 03:13:01 +0000
(13:13 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/device/base.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/core/subdev/device/base.c
b/drivers/gpu/drm/nouveau/core/subdev/device/base.c
index
42faa65
..
cac67dc
100644
(file)
--- a/
drivers/gpu/drm/nouveau/core/subdev/device/base.c
+++ b/
drivers/gpu/drm/nouveau/core/subdev/device/base.c
@@
-139,8
+139,8
@@
nouveau_devobj_ctor(struct nouveau_object *parent,
if (!(args->disable & NV_DEVICE_DISABLE_IDENTIFY) &&
!device->card_type) {
map = ioremap(mmio_base, 0x102000);
- if (map == NULL)
{
- }
+ if (map == NULL)
+ return -ENOMEM;
/* switch mmio to cpu's native endianness */
#ifndef __BIG_ENDIAN
@@
-230,7
+230,7
@@
nouveau_devobj_ctor(struct nouveau_object *parent,
nv_subdev(device)->mmio = ioremap(mmio_base, mmio_size);
if (!nv_subdev(device)->mmio) {
nv_error(device, "unable to map device registers\n");
- return
ret
;
+ return
-ENOMEM
;
}
}