]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/staging/comedi/comedi_buf.c
Merge branches 'pm-core', 'pm-qos', 'pm-domains' and 'pm-opp'
[linux.git] / drivers / staging / comedi / comedi_buf.c
index c7d7682b1412ba7b7cc8730a363b84aeed493adc..1e1df89b50181e97a6df0fbed0d6ba54c01439a2 100644 (file)
@@ -188,7 +188,7 @@ bool comedi_buf_is_mmapped(struct comedi_subdevice *s)
 {
        struct comedi_buf_map *bm = s->async->buf_map;
 
-       return bm && (atomic_read(&bm->refcount.refcount) > 1);
+       return bm && (kref_read(&bm->refcount) > 1);
 }
 
 int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s,