diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/include/subdev/bar.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/core/include/subdev/bar.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/core/include/subdev/bar.h b/drivers/gpu/drm/nouveau/core/include/subdev/bar.h index 257ddf6..960e33a 100644 --- a/drivers/gpu/drm/nouveau/core/include/subdev/bar.h +++ b/drivers/gpu/drm/nouveau/core/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; |