Merge tag 'usb-4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
[linux-2.6-microblaze.git] / drivers / usb / gadget / udc / fsl_udc_core.c
index a3c092b..9a3f7db 100644 (file)
@@ -2208,22 +2208,8 @@ static int fsl_proc_read(struct seq_file *m, void *v)
        return 0;
 }
 
-/*
- * seq_file wrappers for procfile show routines.
- */
-static int fsl_proc_open(struct inode *inode, struct file *file)
-{
-       return single_open(file, fsl_proc_read, NULL);
-}
-
-static const struct file_operations fsl_proc_fops = {
-       .open           = fsl_proc_open,
-       .read           = seq_read,
-       .llseek         = seq_lseek,
-       .release        = single_release,
-};
-
-#define create_proc_file()     proc_create(proc_filename, 0, NULL, &fsl_proc_fops)
+#define create_proc_file() \
+       proc_create_single(proc_filename, 0, NULL, fsl_proc_read)
 #define remove_proc_file()     remove_proc_entry(proc_filename, NULL)
 
 #else                          /* !CONFIG_USB_GADGET_DEBUG_FILES */