All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH Resend 0/4] ASoC: tegra: Some fixes in codec files
@ 2013-01-24  9:21 Sachin Kamat
  2013-01-24  9:21 ` [PATCH 1/4] ASoC: tegra_wm9712: Remove __devinitconst attribute Sachin Kamat
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Sachin Kamat @ 2013-01-24  9:21 UTC (permalink / raw)
  To: alsa-devel; +Cc: tiwai, sachin.kamat, broonie, swarren, lgirdwood

Resending this series with Stephen Warren's 'Reviewed-by' tag and dropping
a patch as suggested by him.

Compile tested using tegra_defconfig on the for-next branch of
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git


Sachin Kamat (4):
  ASoC: tegra_wm9712: Remove __devinitconst attribute
  ASoC: tegra20_ac97: Remove __devinitconst attribute
  ASoC: tegra: Use NULL instead of 0 for pointers
  ASoC: tegra: Staticize some functions in tegra30_i2s.c

 sound/soc/tegra/tegra20_ac97.c |    2 +-
 sound/soc/tegra/tegra30_ahub.c |    4 ++--
 sound/soc/tegra/tegra30_i2s.c  |    4 ++--
 sound/soc/tegra/tegra_wm9712.c |    2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

-- 
1.7.4.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/4] ASoC: tegra_wm9712: Remove __devinitconst attribute
  2013-01-24  9:21 [PATCH Resend 0/4] ASoC: tegra: Some fixes in codec files Sachin Kamat
@ 2013-01-24  9:21 ` Sachin Kamat
  2013-01-24  9:21 ` [PATCH 2/4] ASoC: tegra20_ac97: " Sachin Kamat
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Sachin Kamat @ 2013-01-24  9:21 UTC (permalink / raw)
  To: alsa-devel; +Cc: Lucas Stach, tiwai, broonie, lgirdwood, sachin.kamat, swarren

This has been removed from the kernel recently and gives following build errors:
sound/soc/tegra/tegra_wm9712.c:155:58: error:
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__devinitconst’
sound/soc/tegra/tegra_wm9712.c:165:21: error:
‘tegra_wm9712_of_match’ undeclared here (not in a function)

Cc: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
---
 sound/soc/tegra/tegra_wm9712.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sound/soc/tegra/tegra_wm9712.c b/sound/soc/tegra/tegra_wm9712.c
index cdbd2f0..68d4240 100644
--- a/sound/soc/tegra/tegra_wm9712.c
+++ b/sound/soc/tegra/tegra_wm9712.c
@@ -152,7 +152,7 @@ static int tegra_wm9712_driver_remove(struct platform_device *pdev)
 	return 0;
 }
 
-static const struct of_device_id tegra_wm9712_of_match[] __devinitconst = {
+static const struct of_device_id tegra_wm9712_of_match[] = {
 	{ .compatible = "nvidia,tegra-audio-wm9712", },
 	{},
 };
-- 
1.7.4.1

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/4] ASoC: tegra20_ac97: Remove __devinitconst attribute
  2013-01-24  9:21 [PATCH Resend 0/4] ASoC: tegra: Some fixes in codec files Sachin Kamat
  2013-01-24  9:21 ` [PATCH 1/4] ASoC: tegra_wm9712: Remove __devinitconst attribute Sachin Kamat
@ 2013-01-24  9:21 ` Sachin Kamat
  2013-01-24  9:21 ` [PATCH 3/4] ASoC: tegra: Use NULL instead of 0 for pointers Sachin Kamat
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Sachin Kamat @ 2013-01-24  9:21 UTC (permalink / raw)
  To: alsa-devel; +Cc: Lucas Stach, tiwai, broonie, lgirdwood, sachin.kamat, swarren

__devinitconst has been removed from the kernel and gives
the following build errors:
sound/soc/tegra/tegra20_ac97.c:460:58: error: Expected ; at end of declaration
sound/soc/tegra/tegra20_ac97.c:460:58: error: got __devinitconst

Cc: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
---
 sound/soc/tegra/tegra20_ac97.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sound/soc/tegra/tegra20_ac97.c b/sound/soc/tegra/tegra20_ac97.c
index 1bae73b..336dcdd 100644
--- a/sound/soc/tegra/tegra20_ac97.c
+++ b/sound/soc/tegra/tegra20_ac97.c
@@ -457,7 +457,7 @@ static int tegra20_ac97_platform_remove(struct platform_device *pdev)
 	return 0;
 }
 
-static const struct of_device_id tegra20_ac97_of_match[] __devinitconst = {
+static const struct of_device_id tegra20_ac97_of_match[] = {
 	{ .compatible = "nvidia,tegra20-ac97", },
 	{},
 };
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 3/4] ASoC: tegra: Use NULL instead of 0 for pointers
  2013-01-24  9:21 [PATCH Resend 0/4] ASoC: tegra: Some fixes in codec files Sachin Kamat
  2013-01-24  9:21 ` [PATCH 1/4] ASoC: tegra_wm9712: Remove __devinitconst attribute Sachin Kamat
  2013-01-24  9:21 ` [PATCH 2/4] ASoC: tegra20_ac97: " Sachin Kamat
@ 2013-01-24  9:21 ` Sachin Kamat
  2013-01-24  9:21 ` [PATCH 4/4] ASoC: tegra: Staticize some functions in tegra30_i2s.c Sachin Kamat
  2013-01-24 10:55 ` [PATCH Resend 0/4] ASoC: tegra: Some fixes in codec files Mark Brown
  4 siblings, 0 replies; 6+ messages in thread
From: Sachin Kamat @ 2013-01-24  9:21 UTC (permalink / raw)
  To: alsa-devel; +Cc: tiwai, sachin.kamat, broonie, swarren, lgirdwood

Fixes the following sparse warnings:
sound/soc/tegra/tegra30_ahub.c:583:16: warning:
Using plain integer as NULL pointer
sound/soc/tegra/tegra30_ahub.c:600:16: warning:
Using plain integer as NULL pointer

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
---
 sound/soc/tegra/tegra30_ahub.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/tegra/tegra30_ahub.c b/sound/soc/tegra/tegra30_ahub.c
index f354dc3..dd146f1 100644
--- a/sound/soc/tegra/tegra30_ahub.c
+++ b/sound/soc/tegra/tegra30_ahub.c
@@ -580,7 +580,7 @@ err_clk_put_apbif:
 	clk_put(ahub->clk_apbif);
 err_clk_put_d_audio:
 	clk_put(ahub->clk_d_audio);
-	ahub = 0;
+	ahub = NULL;
 err:
 	return ret;
 }
@@ -597,7 +597,7 @@ static int tegra30_ahub_remove(struct platform_device *pdev)
 	clk_put(ahub->clk_apbif);
 	clk_put(ahub->clk_d_audio);
 
-	ahub = 0;
+	ahub = NULL;
 
 	return 0;
 }
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 4/4] ASoC: tegra: Staticize some functions in tegra30_i2s.c
  2013-01-24  9:21 [PATCH Resend 0/4] ASoC: tegra: Some fixes in codec files Sachin Kamat
                   ` (2 preceding siblings ...)
  2013-01-24  9:21 ` [PATCH 3/4] ASoC: tegra: Use NULL instead of 0 for pointers Sachin Kamat
@ 2013-01-24  9:21 ` Sachin Kamat
  2013-01-24 10:55 ` [PATCH Resend 0/4] ASoC: tegra: Some fixes in codec files Mark Brown
  4 siblings, 0 replies; 6+ messages in thread
From: Sachin Kamat @ 2013-01-24  9:21 UTC (permalink / raw)
  To: alsa-devel; +Cc: tiwai, sachin.kamat, broonie, swarren, lgirdwood

'tegra30_i2s_startup' and 'tegra30_i2s_shutdown' are used only in this file and
hence made static. Fixes the following sparse warnings:
sound/soc/tegra/tegra30_i2s.c:74:5: warning:
symbol 'tegra30_i2s_startup' was not declared. Should it be static?
sound/soc/tegra/tegra30_i2s.c:101:6: warning:
symbol 'tegra30_i2s_shutdown' was not declared. Should it be static?

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
---
 sound/soc/tegra/tegra30_i2s.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/tegra/tegra30_i2s.c b/sound/soc/tegra/tegra30_i2s.c
index 27e91dd..f4e1ce8 100644
--- a/sound/soc/tegra/tegra30_i2s.c
+++ b/sound/soc/tegra/tegra30_i2s.c
@@ -71,7 +71,7 @@ static int tegra30_i2s_runtime_resume(struct device *dev)
 	return 0;
 }
 
-int tegra30_i2s_startup(struct snd_pcm_substream *substream,
+static int tegra30_i2s_startup(struct snd_pcm_substream *substream,
 			struct snd_soc_dai *dai)
 {
 	struct tegra30_i2s *i2s = snd_soc_dai_get_drvdata(dai);
@@ -98,7 +98,7 @@ int tegra30_i2s_startup(struct snd_pcm_substream *substream,
 	return ret;
 }
 
-void tegra30_i2s_shutdown(struct snd_pcm_substream *substream,
+static void tegra30_i2s_shutdown(struct snd_pcm_substream *substream,
 			struct snd_soc_dai *dai)
 {
 	struct tegra30_i2s *i2s = snd_soc_dai_get_drvdata(dai);
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH Resend 0/4] ASoC: tegra: Some fixes in codec files
  2013-01-24  9:21 [PATCH Resend 0/4] ASoC: tegra: Some fixes in codec files Sachin Kamat
                   ` (3 preceding siblings ...)
  2013-01-24  9:21 ` [PATCH 4/4] ASoC: tegra: Staticize some functions in tegra30_i2s.c Sachin Kamat
@ 2013-01-24 10:55 ` Mark Brown
  4 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2013-01-24 10:55 UTC (permalink / raw)
  To: Sachin Kamat; +Cc: tiwai, alsa-devel, swarren, lgirdwood


[-- Attachment #1.1: Type: text/plain, Size: 192 bytes --]

On Thu, Jan 24, 2013 at 02:51:14PM +0530, Sachin Kamat wrote:
> Resending this series with Stephen Warren's 'Reviewed-by' tag and dropping
> a patch as suggested by him.

Applied all, thanks.

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-01-24 10:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-24  9:21 [PATCH Resend 0/4] ASoC: tegra: Some fixes in codec files Sachin Kamat
2013-01-24  9:21 ` [PATCH 1/4] ASoC: tegra_wm9712: Remove __devinitconst attribute Sachin Kamat
2013-01-24  9:21 ` [PATCH 2/4] ASoC: tegra20_ac97: " Sachin Kamat
2013-01-24  9:21 ` [PATCH 3/4] ASoC: tegra: Use NULL instead of 0 for pointers Sachin Kamat
2013-01-24  9:21 ` [PATCH 4/4] ASoC: tegra: Staticize some functions in tegra30_i2s.c Sachin Kamat
2013-01-24 10:55 ` [PATCH Resend 0/4] ASoC: tegra: Some fixes in codec files Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.