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>
int irq;
void __iomem *base;
- void *context;
- u32 resource_size;
-
u32 dma_status:1;
};
u32 reg;
void __iomem *base;
- void *context;
if (!node) {
dev_err(dev, "device node not found\n");
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;