aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra/drm.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2016-04-15 01:10:35 -0400
committerDave Airlie <airlied@redhat.com>2016-04-21 20:33:53 -0400
commit747a598ffa7dff499ee93d414b74a08af6ec657e (patch)
treeb6606905e2e8ef261db4ef8e9ce8a26c11db2599 /drivers/gpu/drm/tegra/drm.c
parent19ab3f8bb4edbc576d4a2cc94a80d0e28296b649 (diff)
drm/mode: introduce wrapper to read framebuffer refcount.
Avoids drivers knowing where the kref is stored. [airlied: add kerneldoc] Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/drm.c')
-rw-r--r--drivers/gpu/drm/tegra/drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c
index 8e6b18caa706..2be88eb0cb83 100644
--- a/drivers/gpu/drm/tegra/drm.c
+++ b/drivers/gpu/drm/tegra/drm.c
@@ -878,7 +878,7 @@ static int tegra_debugfs_framebuffers(struct seq_file *s, void *data)
878 seq_printf(s, "%3d: user size: %d x %d, depth %d, %d bpp, refcount %d\n", 878 seq_printf(s, "%3d: user size: %d x %d, depth %d, %d bpp, refcount %d\n",
879 fb->base.id, fb->width, fb->height, fb->depth, 879 fb->base.id, fb->width, fb->height, fb->depth,
880 fb->bits_per_pixel, 880 fb->bits_per_pixel,
881 atomic_read(&fb->refcount.refcount)); 881 drm_framebuffer_read_refcount(fb));
882 } 882 }
883 883
884 mutex_unlock(&drm->mode_config.fb_lock); 884 mutex_unlock(&drm->mode_config.fb_lock);