Merge tag 'doc-4.11-images' of git://git.lwn.net/linux into drm-misc-next
[linux-2.6-microblaze.git] / include / drm / drm_framebuffer.h
index 45410ba..5244f05 100644 (file)
@@ -258,7 +258,7 @@ static inline void drm_framebuffer_unreference(struct drm_framebuffer *fb)
  */
 static inline uint32_t drm_framebuffer_read_refcount(struct drm_framebuffer *fb)
 {
-       return atomic_read(&fb->base.refcount.refcount);
+       return kref_read(&fb->base.refcount);
 }
 
 /**