]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/drm/drm_framebuffer.h
Merge branches 'pm-core', 'pm-qos', 'pm-domains' and 'pm-opp'
[linux.git] / include / drm / drm_framebuffer.h
index 1ddfa2928802249f8c5abefb80ed71577bb04c12..a232e7f0c8695090f7a86805aaef73bb024ef8df 100644 (file)
@@ -247,7 +247,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);
 }
 
 /**