summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/udc/s3c2410_udc.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-05-18 18:21:05 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-05-21 13:45:36 +0200
commit1531a2bb4494f1960488caeeac3c310c7478f186 (patch)
tree4b73f9f187904cdb1fb449cb2b101c04b29e4a0e /drivers/usb/gadget/udc/s3c2410_udc.h
parente3d59eff47b8cc385acae9d7fb1c787857023376 (diff)
USB: gadget: s3c2410_udc: remove dentry storage for debugfs file
There is no need to store the dentry pointer for a debugfs file that we only use to remove it when the device goes away. debugfs can do the lookup for us instead, saving us some trouble, and making things smaller overall. Cc: Felipe Balbi <balbi@kernel.org> Cc: linux-usb@vger.kernel.org Link: https://lore.kernel.org/r/20210518162105.3698090-1-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/gadget/udc/s3c2410_udc.h')
-rw-r--r--drivers/usb/gadget/udc/s3c2410_udc.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc/s3c2410_udc.h b/drivers/usb/gadget/udc/s3c2410_udc.h
index 68bdf3e5aac2..135a5bff3c74 100644
--- a/drivers/usb/gadget/udc/s3c2410_udc.h
+++ b/drivers/usb/gadget/udc/s3c2410_udc.h
@@ -89,7 +89,6 @@ struct s3c2410_udc {
unsigned req_config : 1;
unsigned req_pending : 1;
u8 vbus;
- struct dentry *regs_info;
int irq;
};
#define to_s3c2410(g) (container_of((g), struct s3c2410_udc, gadget))