summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv10.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv10.c')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv10.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv10.c b/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv10.c
index f0d47d1ce2a1..5f54906d45b7 100644
--- a/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv10.c
+++ b/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv10.c
@@ -32,7 +32,8 @@
static void
nv10_devinit_meminit(struct nvkm_devinit *init)
{
- struct nvkm_device *device = init->subdev.device;
+ struct nvkm_subdev *subdev = &init->subdev;
+ struct nvkm_device *device = subdev->device;
static const int mem_width[] = { 0x10, 0x00, 0x20 };
int mem_width_count;
uint32_t patt = 0xdeadbeef;
@@ -47,7 +48,7 @@ nv10_devinit_meminit(struct nvkm_devinit *init)
/* Map the framebuffer aperture */
fb = fbmem_init(device);
if (!fb) {
- nv_error(init, "failed to map fb\n");
+ nvkm_error(subdev, "failed to map fb\n");
return;
}
OpenPOWER on IntegriCloud