diff mbox series

[1/6] usb: musb: jz4740: Suppress useless field in priv structure

Message ID 20191214221126.93116-1-paul@crapouillou.net (mailing list archive)
State New, archived
Headers show
Series [1/6] usb: musb: jz4740: Suppress useless field in priv structure | expand

Commit Message

Paul Cercueil Dec. 14, 2019, 10:11 p.m. UTC
The 'dev' field was never read anywhere.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
---
 drivers/usb/musb/jz4740.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Bin Liu Dec. 16, 2019, 5:19 p.m. UTC | #1
On Sat, Dec 14, 2019 at 11:11:21PM +0100, Paul Cercueil wrote:
> The 'dev' field was never read anywhere.
> 
> Signed-off-by: Paul Cercueil <paul@crapouillou.net>

The series is queued for -next. Thanks.

-Bin.
diff mbox series

Patch

diff --git a/drivers/usb/musb/jz4740.c b/drivers/usb/musb/jz4740.c
index 5e885fa26829..16d4120ba145 100644
--- a/drivers/usb/musb/jz4740.c
+++ b/drivers/usb/musb/jz4740.c
@@ -17,7 +17,6 @@ 
 #include "musb_core.h"
 
 struct jz4740_glue {
-	struct device           *dev;
 	struct platform_device  *musb;
 	struct clk		*clk;
 };
@@ -150,7 +149,6 @@  static int jz4740_probe(struct platform_device *pdev)
 	musb->dev.dma_mask		= &musb->dev.coherent_dma_mask;
 	musb->dev.coherent_dma_mask	= DMA_BIT_MASK(32);
 
-	glue->dev			= &pdev->dev;
 	glue->musb			= musb;
 	glue->clk			= clk;