diff mbox

[1/2] ASoC: fsl_dma: Remove 'path' field from dma_object struct

Message ID 1420651312-21671-1-git-send-email-festevam@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Fabio Estevam Jan. 7, 2015, 5:21 p.m. UTC
From: Fabio Estevam <fabio.estevam@freescale.com>

The 'path' field has not a real purpose, so let's get rid of it.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
Buit tested only.

 sound/soc/fsl/fsl_dma.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Timur Tabi Jan. 7, 2015, 5:23 p.m. UTC | #1
Fabio Estevam wrote:
> From: Fabio Estevam<fabio.estevam@freescale.com>
>
> The 'path' field has not a real purpose, so let's get rid of it.

I'm pretty sure that it *did* have a real purpose, but it's not needed 
any more.  Let me try to figure out what happened, so you can specify 
that in the changelog.
diff mbox

Patch

diff --git a/sound/soc/fsl/fsl_dma.c b/sound/soc/fsl/fsl_dma.c
index 93d7e56..026da0a 100644
--- a/sound/soc/fsl/fsl_dma.c
+++ b/sound/soc/fsl/fsl_dma.c
@@ -63,7 +63,6 @@  struct dma_object {
 	struct ccsr_dma_channel __iomem *channel;
 	unsigned int irq;
 	bool assigned;
-	char path[1];
 };
 
 /*
@@ -910,7 +909,6 @@  static int fsl_soc_dma_probe(struct platform_device *pdev)
 		return -ENOMEM;
 	}
 
-	strcpy(dma->path, np->full_name);
 	dma->dai.ops = &fsl_dma_ops;
 	dma->dai.pcm_new = fsl_dma_new;
 	dma->dai.pcm_free = fsl_dma_free_dma_buffers;