usb: dwc3: remove unused struct member dwc3->mem
authorLu Baolu <baolu.lu@linux.intel.com>
Thu, 13 Oct 2016 01:08:14 +0000 (09:08 +0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 3 Nov 2016 08:38:33 +0000 (10:38 +0200)
Member @mem in struct dwc3 is not used in any places. Clean up it.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/core.c
drivers/usb/dwc3/core.h

index 7287a763cd0cc4ca5a114ed687e6c34b0bdd643d..3dc535a703f1ed69270469f40c3d2e7ba6d234b0 100644 (file)
@@ -941,7 +941,6 @@ static int dwc3_probe(struct platform_device *pdev)
                return -ENOMEM;
 
        dwc = PTR_ALIGN(mem, DWC3_ALIGN_MASK + 1);
-       dwc->mem = mem;
        dwc->dev = dev;
 
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
index bdd37871fc6c91a6813614ddaafc8e87a57b56ee..29fd7aa5fc7204b83bc408c2fa812dcf09229074 100644 (file)
@@ -784,7 +784,6 @@ struct dwc3_scratchpad_array {
  * @ep0state: state of endpoint zero
  * @link_state: link state
  * @speed: device speed (super, high, full, low)
- * @mem: points to start of memory which is used for this struct.
  * @hwparams: copy of hwparams registers
  * @root: debugfs root folder pointer
  * @regset: debugfs pointer to regdump file
@@ -934,8 +933,6 @@ struct dwc3 {
        u8                      num_out_eps;
        u8                      num_in_eps;
 
-       void                    *mem;
-
        struct dwc3_hwparams    hwparams;
        struct dentry           *root;
        struct debugfs_regset32 *regset;