summaryrefslogtreecommitdiff
path: root/nvkm/include/subdev/bar.h
diff options
context:
space:
mode:
Diffstat (limited to 'nvkm/include/subdev/bar.h')
-rw-r--r--nvkm/include/subdev/bar.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nvkm/include/subdev/bar.h b/nvkm/include/subdev/bar.h
index 257ddf6d3..960e33a30 100644
--- a/nvkm/include/subdev/bar.h
+++ b/nvkm/include/subdev/bar.h
@@ -27,7 +27,7 @@ struct nouveau_bar {
static inline struct nouveau_bar *
nouveau_bar(void *obj)
{
- return (void *)nv_device(obj)->subdev[NVDEV_SUBDEV_BAR];
+ return (void *)nouveau_subdev(obj, NVDEV_SUBDEV_BAR);
}
extern struct nouveau_oclass nv50_bar_oclass;