Merge tag 'staging-4.21-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh...
[sfrench/cifs-2.6.git] / drivers / staging / unisys / visorhba / visorhba_main.c
index 5cf93e8eb77c6aa6d88223c16b97f87870efdab3..2dad36a055188f6f6917a5094dcbc761071f2670 100644 (file)
@@ -680,19 +680,7 @@ static int info_debugfs_show(struct seq_file *seq, void *v)
 
        return 0;
 }
-
-static int info_debugfs_open(struct inode *inode, struct file *file)
-{
-       return single_open(file, info_debugfs_show, inode->i_private);
-}
-
-static const struct file_operations info_debugfs_fops = {
-       .owner = THIS_MODULE,
-       .open = info_debugfs_open,
-       .read = seq_read,
-       .llseek = seq_lseek,
-       .release = single_release,
-};
+DEFINE_SHOW_ATTRIBUTE(info_debugfs);
 
 /*
  * complete_taskmgmt_command - Complete task management