Commit f9d2f922 authored by Lu Baolu's avatar Lu Baolu Committed by Felipe Balbi

usb: dwc3: remove unused struct member dwc3->mem

Member @mem in struct dwc3 is not used in any places. Clean up it.
Signed-off-by: default avatarLu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 0a695d4c
...@@ -941,7 +941,6 @@ static int dwc3_probe(struct platform_device *pdev) ...@@ -941,7 +941,6 @@ static int dwc3_probe(struct platform_device *pdev)
return -ENOMEM; return -ENOMEM;
dwc = PTR_ALIGN(mem, DWC3_ALIGN_MASK + 1); dwc = PTR_ALIGN(mem, DWC3_ALIGN_MASK + 1);
dwc->mem = mem;
dwc->dev = dev; dwc->dev = dev;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
......
...@@ -784,7 +784,6 @@ struct dwc3_scratchpad_array { ...@@ -784,7 +784,6 @@ struct dwc3_scratchpad_array {
* @ep0state: state of endpoint zero * @ep0state: state of endpoint zero
* @link_state: link state * @link_state: link state
* @speed: device speed (super, high, full, low) * @speed: device speed (super, high, full, low)
* @mem: points to start of memory which is used for this struct.
* @hwparams: copy of hwparams registers * @hwparams: copy of hwparams registers
* @root: debugfs root folder pointer * @root: debugfs root folder pointer
* @regset: debugfs pointer to regdump file * @regset: debugfs pointer to regdump file
...@@ -934,8 +933,6 @@ struct dwc3 { ...@@ -934,8 +933,6 @@ struct dwc3 {
u8 num_out_eps; u8 num_out_eps;
u8 num_in_eps; u8 num_in_eps;
void *mem;
struct dwc3_hwparams hwparams; struct dwc3_hwparams hwparams;
struct dentry *root; struct dentry *root;
struct debugfs_regset32 *regset; struct debugfs_regset32 *regset;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment