Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d9a00ee authored by Felipe Balbi's avatar Felipe Balbi
Browse files

usb: dwc3: omap: remove unused fields from private structure



we're not using those fields of the structure,
might as well remove them.

Tested-by: default avatarVivek Gautam <gautam.vivek@samsung.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 9a4b5dab
Loading
Loading
Loading
Loading
+0 −12
Original line number Original line Diff line number Diff line
@@ -121,9 +121,6 @@ struct dwc3_omap {
	int			irq;
	int			irq;
	void __iomem		*base;
	void __iomem		*base;


	void			*context;
	u32			resource_size;

	u32			dma_status:1;
	u32			dma_status:1;
};
};


@@ -294,7 +291,6 @@ static int dwc3_omap_probe(struct platform_device *pdev)
	u32			reg;
	u32			reg;


	void __iomem		*base;
	void __iomem		*base;
	void			*context;


	if (!node) {
	if (!node) {
		dev_err(dev, "device node not found\n");
		dev_err(dev, "device node not found\n");
@@ -327,16 +323,8 @@ static int dwc3_omap_probe(struct platform_device *pdev)
		return -ENOMEM;
		return -ENOMEM;
	}
	}


	context = devm_kzalloc(dev, resource_size(res), GFP_KERNEL);
	if (!context) {
		dev_err(dev, "couldn't allocate dwc3 context memory\n");
		return -ENOMEM;
	}

	spin_lock_init(&omap->lock);
	spin_lock_init(&omap->lock);


	omap->resource_size = resource_size(res);
	omap->context	= context;
	omap->dev	= dev;
	omap->dev	= dev;
	omap->irq	= irq;
	omap->irq	= irq;
	omap->base	= base;
	omap->base	= base;