summaryrefslogtreecommitdiff
path: root/nvkm/include/subdev/timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'nvkm/include/subdev/timer.h')
-rw-r--r--nvkm/include/subdev/timer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nvkm/include/subdev/timer.h b/nvkm/include/subdev/timer.h
index db9be803a..36b5184e3 100644
--- a/nvkm/include/subdev/timer.h
+++ b/nvkm/include/subdev/timer.h
@@ -42,7 +42,7 @@ struct nouveau_timer {
static inline struct nouveau_timer *
nouveau_timer(void *obj)
{
- return (void *)nv_device(obj)->subdev[NVDEV_SUBDEV_TIMER];
+ return (void *)nouveau_subdev(obj, NVDEV_SUBDEV_TIMER);
}
#define nouveau_timer_create(p,e,o,d) \