]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/usb/gadget/function/u_fs.h
Merge tag 'usb-for-v4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi...
[karo-tx-linux.git] / drivers / usb / gadget / function / u_fs.h
index 7ff485af3bee943c03e29a4da19299db29cbf453..4378cc2fcac36fd69c71cdea53fef6e7ce6ce6e9 100644 (file)
@@ -20,6 +20,7 @@
 #include <linux/list.h>
 #include <linux/mutex.h>
 #include <linux/workqueue.h>
+#include <linux/refcount.h>
 
 #ifdef VERBOSE_DEBUG
 #ifndef pr_vdebug
@@ -178,7 +179,7 @@ struct ffs_data {
        struct completion               ep0req_completion;      /* P: mutex */
 
        /* reference counter */
-       atomic_t                        ref;
+       refcount_t                      ref;
        /* how many files are opened (EP0 and others) */
        atomic_t                        opened;