drm: Fix return type of crc .poll()
[linux-2.6-microblaze.git] / drivers / gpu / drm / drm_debugfs_crc.c
index be1b7ba..ca3c55c 100644 (file)
@@ -334,19 +334,17 @@ static ssize_t crtc_crc_read(struct file *filep, char __user *user_buf,
        return LINE_LEN(crc->values_cnt);
 }
 
-static unsigned int crtc_crc_poll(struct file *file, poll_table *wait)
+static __poll_t crtc_crc_poll(struct file *file, poll_table *wait)
 {
        struct drm_crtc *crtc = file->f_inode->i_private;
        struct drm_crtc_crc *crc = &crtc->crc;
-       unsigned ret;
+       __poll_t ret = 0;
 
        poll_wait(file, &crc->wq, wait);
 
        spin_lock_irq(&crc->lock);
        if (crc->source && crtc_crc_data_count(crc))
-               ret = POLLIN | POLLRDNORM;
-       else
-               ret = 0;
+               ret |= EPOLLIN | EPOLLRDNORM;
        spin_unlock_irq(&crc->lock);
 
        return ret;