aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/core/include/subdev/timer.h
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-12-03 17:07:22 +1000
committerBen Skeggs <bskeggs@redhat.com>2015-01-22 12:14:42 +1000
commit2f4a58e852d103488fc435f0c1ecbb9a86761579 (patch)
treec708086427dc2a003a3f9349f2d2ca65ed6c5e7e /drivers/gpu/drm/nouveau/core/include/subdev/timer.h
parentdrm/nouveau/fb: remove some (now) unnecessary hacks (diff)
downloadlinux-dev-2f4a58e852d103488fc435f0c1ecbb9a86761579.tar.xz
linux-dev-2f4a58e852d103488fc435f0c1ecbb9a86761579.zip
drm/nouveau/subdev: always upcast through nouveau_subdev()/nouveau_engine()
Has additional safeties for one. For two, needed for an upcoming commit that removes abuse of nouveau_object.engine. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/include/subdev/timer.h')
-rw-r--r--drivers/gpu/drm/nouveau/core/include/subdev/timer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/core/include/subdev/timer.h b/drivers/gpu/drm/nouveau/core/include/subdev/timer.h
index db9be803a874..36b5184e35ec 100644
--- a/drivers/gpu/drm/nouveau/core/include/subdev/timer.h
+++ b/drivers/gpu/drm/nouveau/core/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) \