vfs: do bulk POLL* -> EPOLL* replacement
[linux-2.6-block.git] / drivers / mfd / ab8500-debugfs.c
index 1afa27de7191c7b75fb37ab64fea72bae97cce2a..8ba41073dd89f1cdb210bd015c86979fd5c3a083 100644 (file)
@@ -1258,20 +1258,6 @@ static struct ab8500_prcmu_ranges ab8540_debug_ranges[AB8500_NUM_BANKS] = {
        },
 };
 
-#define DEFINE_SHOW_ATTRIBUTE(__name)                                        \
-static int __name ## _open(struct inode *inode, struct file *file)           \
-{                                                                            \
-       return single_open(file, __name ## _show, inode->i_private);          \
-}                                                                            \
-                                                                             \
-static const struct file_operations __name ## _fops = {                              \
-       .owner          = THIS_MODULE,                                        \
-       .open           = __name ## _open,                                    \
-       .read           = seq_read,                                           \
-       .llseek         = seq_lseek,                                          \
-       .release        = single_release,                                     \
-}                                                                            \
-
 static irqreturn_t ab8500_debug_handler(int irq, void *data)
 {
        char buf[16];
@@ -1281,7 +1267,7 @@ static irqreturn_t ab8500_debug_handler(int irq, void *data)
        if (irq_abb < num_irqs)
                irq_count[irq_abb]++;
        /*
-        * This makes it possible to use poll for events (POLLPRI | POLLERR)
+        * This makes it possible to use poll for events (EPOLLPRI | EPOLLERR)
         * from userspace on sysfs file named <irq-nr>
         */
        sprintf(buf, "%d", irq);