Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364578
b: refs/heads/master
c: 1d9a00e
h: refs/heads/master
v: v3
  • Loading branch information
Felipe Balbi committed Mar 18, 2013
1 parent 4bff91a commit 06e8ee6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9a4b5dab91a8bfae46bfa572660cf43e9ebdc6c3
refs/heads/master: 1d9a00eeca1deeebf001047aa5e5e9d00e5588cf
12 changes: 0 additions & 12 deletions trunk/drivers/usb/dwc3/dwc3-omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,6 @@ struct dwc3_omap {
int irq;
void __iomem *base;

void *context;
u32 resource_size;

u32 dma_status:1;
};

Expand Down Expand Up @@ -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");
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 06e8ee6

Please sign in to comment.