diff options
author | Felipe Balbi <balbi@ti.com> | 2013-02-11 11:07:34 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-03-18 11:17:02 +0200 |
commit | 1d9a00eeca1deeebf001047aa5e5e9d00e5588cf (patch) | |
tree | 9da92d3dd898e2a36fbc0effabe65413c3471bfb /drivers/usb/dwc3 | |
parent | 9a4b5dab91a8bfae46bfa572660cf43e9ebdc6c3 (diff) | |
download | linux-3.10-1d9a00eeca1deeebf001047aa5e5e9d00e5588cf.tar.gz linux-3.10-1d9a00eeca1deeebf001047aa5e5e9d00e5588cf.tar.bz2 linux-3.10-1d9a00eeca1deeebf001047aa5e5e9d00e5588cf.zip |
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: Vivek Gautam <gautam.vivek@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r-- | drivers/usb/dwc3/dwc3-omap.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers/usb/dwc3/dwc3-omap.c index 43d62053e15..ed178c0fc42 100644 --- a/drivers/usb/dwc3/dwc3-omap.c +++ b/drivers/usb/dwc3/dwc3-omap.c @@ -121,9 +121,6 @@ struct dwc3_omap { int irq; void __iomem *base; - void *context; - u32 resource_size; - u32 dma_status:1; }; @@ -294,7 +291,6 @@ static int dwc3_omap_probe(struct platform_device *pdev) u32 reg; void __iomem *base; - void *context; if (!node) { dev_err(dev, "device node not found\n"); @@ -327,16 +323,8 @@ static int dwc3_omap_probe(struct platform_device *pdev) 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); - omap->resource_size = resource_size(res); - omap->context = context; omap->dev = dev; omap->irq = irq; omap->base = base; |