fsldma: remove unused structure members
Remove some unused members from the fsldma data structures. A few trivial uses of struct resource were converted to use the stack rather than keeping the memory allocated for the lifetime of the driver. Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
@@ -92,8 +92,6 @@ struct fsl_desc_sw {
|
||||
struct list_head node;
|
||||
struct list_head tx_list;
|
||||
struct dma_async_tx_descriptor async_tx;
|
||||
struct list_head *ld;
|
||||
void *priv;
|
||||
} __attribute__((aligned(32)));
|
||||
|
||||
struct fsl_dma_chan_regs {
|
||||
@@ -111,7 +109,6 @@ struct fsl_dma_chan;
|
||||
|
||||
struct fsl_dma_device {
|
||||
void __iomem *reg_base; /* DGSR register base */
|
||||
struct resource reg; /* Resource for register */
|
||||
struct device *dev;
|
||||
struct dma_device common;
|
||||
struct fsl_dma_chan *chan[FSL_DMA_MAX_CHANS_PER_DEVICE];
|
||||
@@ -138,7 +135,6 @@ struct fsl_dma_chan {
|
||||
struct dma_chan common; /* DMA common channel */
|
||||
struct dma_pool *desc_pool; /* Descriptors pool */
|
||||
struct device *dev; /* Channel device */
|
||||
struct resource reg; /* Resource for register */
|
||||
int irq; /* Channel IRQ */
|
||||
int id; /* Raw id of this channel */
|
||||
struct tasklet_struct tasklet;
|
||||
|
Reference in New Issue
Block a user