Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1693941

[PATCH v2] sound: fsl_dma: remove dma_object path member

From Rob Herring <robh@kernel.org>
Newsgroups linux.kernel
Subject [PATCH v2] sound: fsl_dma: remove dma_object path member
Date 2017-07-21 21:30 +0200
Message-ID <u5LMC-ou-25@gated-at.bofh.it> (permalink)
References <u5LMB-ou-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


dma_object.path is unused, so rather than fix it to work with DT
full_name changes, just remove it.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Timur Tabi <timur@tabi.org>
Cc: Nicolin Chen <nicoleotsuka@gmail.com>
Cc: Xiubo Li <Xiubo.Lee@gmail.com>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
Cc: alsa-devel@alsa-project.org
Cc: linuxppc-dev@lists.ozlabs.org
---
v2:
- Move printf specifier change to correct patch

 sound/soc/fsl/fsl_dma.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/fsl/fsl_dma.c b/sound/soc/fsl/fsl_dma.c
index ed8ea002902d..b38dd328c783 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];
 };
 
 /*
@@ -903,14 +902,13 @@ static int fsl_soc_dma_probe(struct platform_device *pdev)
 		return ret;
 	}
 
-	dma = kzalloc(sizeof(*dma) + strlen(np->full_name), GFP_KERNEL);
+	dma = kzalloc(sizeof(*dma), GFP_KERNEL);
 	if (!dma) {
 		dev_err(&pdev->dev, "could not allocate dma object\n");
 		of_node_put(ssi_np);
 		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;
-- 
2.11.0

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2] ARM: Convert to using %pOF instead of full_name Rob Herring <robh@kernel.org> - 2017-07-21 21:30 +0200
  [PATCH v2] media: Convert to using %pOF instead of full_name Rob Herring <robh@kernel.org> - 2017-07-21 21:30 +0200
    Re: [PATCH v2] media: Convert to using %pOF instead of full_name Sylwester Nawrocki <s.nawrocki@samsung.com> - 2017-07-22 08:50 +0200
  [PATCH v2] sound: fsl_dma: remove dma_object path member Rob Herring <robh@kernel.org> - 2017-07-21 21:30 +0200
  Re: [PATCH v2] ARM: Convert to using %pOF instead of full_name Shawn Guo <shawnguo@kernel.org> - 2017-07-25 16:00 +0200
  Re: [PATCH v2] ARM: Convert to using %pOF instead of full_name Simon Horman <horms@verge.net.au> - 2017-07-27 15:40 +0200

csiph-web