diff options
author | Dave Airlie <airlied@redhat.com> | 2016-04-15 15:10:35 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2016-04-22 10:33:53 +1000 |
commit | 747a598ffa7dff499ee93d414b74a08af6ec657e (patch) | |
tree | b6606905e2e8ef261db4ef8e9ce8a26c11db2599 /drivers/gpu/drm/tegra | |
parent | 19ab3f8bb4edbc576d4a2cc94a80d0e28296b649 (diff) | |
download | linux-747a598ffa7dff499ee93d414b74a08af6ec657e.tar.bz2 |
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')
-rw-r--r-- | drivers/gpu/drm/tegra/drm.c | 2 |
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) seq_printf(s, "%3d: user size: %d x %d, depth %d, %d bpp, refcount %d\n", fb->base.id, fb->width, fb->height, fb->depth, fb->bits_per_pixel, - atomic_read(&fb->refcount.refcount)); + drm_framebuffer_read_refcount(fb)); } mutex_unlock(&drm->mode_config.fb_lock); |