summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv40.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2015-08-20 14:54:12 +1000
committerBen Skeggs <bskeggs@redhat.com>2015-08-28 12:40:22 +1000
commitb907649e7be734a4911f83b67a14e3425fa8a2a1 (patch)
treeb13bbcbef264915ca015074035ff4e0ec0681b33 /drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv40.c
parenta699a85addc747068a9ac1b2046f4313eb499bc2 (diff)
downloadblackbird-op-linux-b907649e7be734a4911f83b67a14e3425fa8a2a1.tar.gz
blackbird-op-linux-b907649e7be734a4911f83b67a14e3425fa8a2a1.zip
drm/nouveau/clk: switch to subdev printk macros
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv40.c')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv40.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv40.c b/drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv40.c
index 32d59f40f5d3..1aabc5af45ec 100644
--- a/drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv40.c
+++ b/drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv40.c
@@ -106,7 +106,8 @@ static int
nv40_clk_read(struct nvkm_clk *obj, enum nv_clk_src src)
{
struct nv40_clk *clk = container_of(obj, typeof(*clk), base);
- struct nvkm_device *device = clk->base.subdev.device;
+ struct nvkm_subdev *subdev = &clk->base.subdev;
+ struct nvkm_device *device = subdev->device;
u32 mast = nvkm_rd32(device, 0x00c040);
switch (src) {
@@ -124,7 +125,7 @@ nv40_clk_read(struct nvkm_clk *obj, enum nv_clk_src src)
break;
}
- nv_debug(clk, "unknown clock source %d 0x%08x\n", src, mast);
+ nvkm_debug(subdev, "unknown clock source %d %08x\n", src, mast);
return -EINVAL;
}
OpenPOWER on IntegriCloud