diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2015-08-20 07:54:12 +0300 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2015-08-28 05:40:23 +0300 |
commit | c47a48a544ba47eb26ff922203fa0f99c0306907 (patch) | |
tree | 60312795d031bc882f8f63a5ca3aa5d288d698c1 /drivers/gpu/drm/nouveau/nvkm/subdev/mc/base.c | |
parent | 59e1a2f1a665c6defc0050060846ed3d89291e8c (diff) | |
download | linux-c47a48a544ba47eb26ff922203fa0f99c0306907.tar.xz |
drm/nouveau/mc: switch to subdev printk macros
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/subdev/mc/base.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/subdev/mc/base.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/mc/base.c b/drivers/gpu/drm/nouveau/nvkm/subdev/mc/base.c index 80c3c5062e91..babd6d8725f0 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/mc/base.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/mc/base.c @@ -47,7 +47,8 @@ static irqreturn_t nvkm_mc_intr(int irq, void *arg) { struct nvkm_mc *mc = arg; - struct nvkm_device *device = mc->subdev.device; + struct nvkm_subdev *subdev = &mc->subdev; + struct nvkm_device *device = subdev->device; const struct nvkm_mc_oclass *oclass = (void *)nv_object(mc)->oclass; const struct nvkm_mc_intr *map = oclass->intr; struct nvkm_subdev *unit; @@ -72,7 +73,7 @@ nvkm_mc_intr(int irq, void *arg) } if (stat) - nv_error(mc, "unknown intr 0x%08x\n", stat); + nvkm_error(subdev, "unknown intr %08x\n", stat); } nvkm_wr32(device, 0x000140, 0x00000001); @@ -151,7 +152,7 @@ nvkm_mc_create_(struct nvkm_object *parent, struct nvkm_object *engine, if (mc->use_msi && oclass->msi_rearm) { mc->use_msi = pci_enable_msi(device->pdev) == 0; if (mc->use_msi) { - nv_info(mc, "MSI interrupts enabled\n"); + nvkm_debug(&mc->subdev, "MSI enabled\n"); oclass->msi_rearm(mc); } } else { |