summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2016-04-15 15:10:35 +1000
committerDave Airlie <airlied@redhat.com>2016-04-22 10:33:53 +1000
commit747a598ffa7dff499ee93d414b74a08af6ec657e (patch)
treeb6606905e2e8ef261db4ef8e9ce8a26c11db2599 /drivers/gpu/drm/msm
parent19ab3f8bb4edbc576d4a2cc94a80d0e28296b649 (diff)
downloadblackbird-op-linux-747a598ffa7dff499ee93d414b74a08af6ec657e.tar.gz
blackbird-op-linux-747a598ffa7dff499ee93d414b74a08af6ec657e.zip
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/msm')
-rw-r--r--drivers/gpu/drm/msm/msm_fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/msm_fb.c b/drivers/gpu/drm/msm/msm_fb.c
index a474d6cf5d9f..17e0c9eb1900 100644
--- a/drivers/gpu/drm/msm/msm_fb.c
+++ b/drivers/gpu/drm/msm/msm_fb.c
@@ -77,7 +77,7 @@ void msm_framebuffer_describe(struct drm_framebuffer *fb, struct seq_file *m)
seq_printf(m, "fb: %dx%d@%4.4s (%2d, ID:%d)\n",
fb->width, fb->height, (char *)&fb->pixel_format,
- fb->refcount.refcount.counter, fb->base.id);
+ drm_framebuffer_read_refcount(fb), fb->base.id);
for (i = 0; i < n; i++) {
seq_printf(m, " %d: offset=%d pitch=%d, obj: ",
OpenPOWER on IntegriCloud