* [PATCH v2] ASoC: Fix build error in sound/soc/kirkwood/kirkwood-i2s.c
@ 2011-12-28 8:05 Axel Lin
2011-12-28 11:37 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2011-12-28 8:05 UTC (permalink / raw)
To: linux-kernel
Cc: Andrew Lunn, alsa-devel, Nicolas Pitre, Mark Brown, Liam Girdwood,
Arnaud Patard
Since commit db33f4de "ARM: Orion: Remove address map info from all platform data structures",
the dram is removed from struct kirkwood_asoc_platform_data.
This patch fixes below build error:
CC sound/soc/kirkwood/kirkwood-i2s.o
sound/soc/kirkwood/kirkwood-i2s.c: In function 'kirkwood_i2s_dev_probe':
sound/soc/kirkwood/kirkwood-i2s.c:444: error: 'struct kirkwood_asoc_platform_data' has no member named 'dram'
sound/soc/kirkwood/kirkwood-i2s.c:450: error: 'struct kirkwood_asoc_platform_data' has no member named 'dram'
make[3]: *** [sound/soc/kirkwood/kirkwood-i2s.o] Error 1
make[2]: *** [sound/soc/kirkwood] Error 2
make[1]: *** [sound/soc] Error 2
make: *** [sound] Error 2
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Nicolas Pitre <nico@fluxnic.net>
---
v2: the dram field of struct kirkwood_dma_data is not being used now.
Thus also remove it in this patch.
This patch is against linux-next.
sound/soc/kirkwood/kirkwood-i2s.c | 3 +--
sound/soc/kirkwood/kirkwood.h | 1 -
2 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/sound/soc/kirkwood/kirkwood-i2s.c b/sound/soc/kirkwood/kirkwood-i2s.c
index f6bb211..3cb9aa4 100644
--- a/sound/soc/kirkwood/kirkwood-i2s.c
+++ b/sound/soc/kirkwood/kirkwood-i2s.c
@@ -441,13 +441,12 @@ static __devinit int kirkwood_i2s_dev_probe(struct platform_device *pdev)
goto err_ioremap;
}
- if (!data || !data->dram) {
+ if (!data) {
dev_err(&pdev->dev, "no platform data ?!\n");
err = -EINVAL;
goto err_ioremap;
}
- priv->dram = data->dram;
priv->burst = data->burst;
return snd_soc_register_dai(&pdev->dev, &kirkwood_i2s_dai);
diff --git a/sound/soc/kirkwood/kirkwood.h b/sound/soc/kirkwood/kirkwood.h
index bb6e6a5..9047436 100644
--- a/sound/soc/kirkwood/kirkwood.h
+++ b/sound/soc/kirkwood/kirkwood.h
@@ -123,7 +123,6 @@ struct kirkwood_dma_data {
void __iomem *io;
int irq;
int burst;
- struct mbus_dram_target_info *dram;
};
#endif
--
1.7.5.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] ASoC: Fix build error in sound/soc/kirkwood/kirkwood-i2s.c
2011-12-28 8:05 [PATCH v2] ASoC: Fix build error in sound/soc/kirkwood/kirkwood-i2s.c Axel Lin
@ 2011-12-28 11:37 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2011-12-28 11:37 UTC (permalink / raw)
To: Axel Lin
Cc: Andrew Lunn, alsa-devel, Nicolas Pitre, linux-kernel,
Liam Girdwood, Arnaud Patard
On Wed, Dec 28, 2011 at 04:05:22PM +0800, Axel Lin wrote:
> Since commit db33f4de "ARM: Orion: Remove address map info from all platform data structures",
> the dram is removed from struct kirkwood_asoc_platform_data.
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-12-28 11:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-28 8:05 [PATCH v2] ASoC: Fix build error in sound/soc/kirkwood/kirkwood-i2s.c Axel Lin
2011-12-28 11:37 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).