diff options
Diffstat (limited to 'include/drm/drm_framebuffer.h')
-rw-r--r-- | include/drm/drm_framebuffer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/drm_framebuffer.h b/include/drm/drm_framebuffer.h index 1ddfa2928802..a232e7f0c869 100644 --- a/include/drm/drm_framebuffer.h +++ b/include/drm/drm_framebuffer.h | |||
@@ -247,7 +247,7 @@ static inline void drm_framebuffer_unreference(struct drm_framebuffer *fb) | |||
247 | */ | 247 | */ |
248 | static inline uint32_t drm_framebuffer_read_refcount(struct drm_framebuffer *fb) | 248 | static inline uint32_t drm_framebuffer_read_refcount(struct drm_framebuffer *fb) |
249 | { | 249 | { |
250 | return atomic_read(&fb->base.refcount.refcount); | 250 | return kref_read(&fb->base.refcount); |
251 | } | 251 | } |
252 | 252 | ||
253 | /** | 253 | /** |