aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/nouveau/core/subdev/device/base.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/core/subdev/device/base.c b/drivers/gpu/drm/nouveau/core/subdev/device/base.c
index 42faa65b34e8..cac67dc634b7 100644
--- 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,
139 if (!(args->disable & NV_DEVICE_DISABLE_IDENTIFY) && 139 if (!(args->disable & NV_DEVICE_DISABLE_IDENTIFY) &&
140 !device->card_type) { 140 !device->card_type) {
141 map = ioremap(mmio_base, 0x102000); 141 map = ioremap(mmio_base, 0x102000);
142 if (map == NULL) { 142 if (map == NULL)
143 } 143 return -ENOMEM;
144 144
145 /* switch mmio to cpu's native endianness */ 145 /* switch mmio to cpu's native endianness */
146#ifndef __BIG_ENDIAN 146#ifndef __BIG_ENDIAN
@@ -230,7 +230,7 @@ nouveau_devobj_ctor(struct nouveau_object *parent,
230 nv_subdev(device)->mmio = ioremap(mmio_base, mmio_size); 230 nv_subdev(device)->mmio = ioremap(mmio_base, mmio_size);
231 if (!nv_subdev(device)->mmio) { 231 if (!nv_subdev(device)->mmio) {
232 nv_error(device, "unable to map device registers\n"); 232 nv_error(device, "unable to map device registers\n");
233 return ret; 233 return -ENOMEM;
234 } 234 }
235 } 235 }
236 236