All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] ASoC: mc13783: Use module_platform_driver_probe()
@ 2014-01-05  7:38 Alexander Shiyan
  2014-01-05  7:38 ` [PATCH 2/5] ASoC: mc13783: Use core error messages if registration fails Alexander Shiyan
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Alexander Shiyan @ 2014-01-05  7:38 UTC (permalink / raw)
  To: alsa-devel; +Cc: Takashi Iwai, Mark Brown, Liam Girdwood, Alexander Shiyan

mc13783-codec is probed only by MC13XXX MFD core driver so
use module_platform_driver_probe().

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 sound/soc/codecs/mc13783.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/sound/soc/codecs/mc13783.c b/sound/soc/codecs/mc13783.c
index bae6016..8ab9668 100644
--- a/sound/soc/codecs/mc13783.c
+++ b/sound/soc/codecs/mc13783.c
@@ -750,7 +750,7 @@ static struct snd_soc_codec_driver soc_codec_dev_mc13783 = {
 	.num_dapm_routes = ARRAY_SIZE(mc13783_routes),
 };
 
-static int mc13783_codec_probe(struct platform_device *pdev)
+static int __init mc13783_codec_probe(struct platform_device *pdev)
 {
 	struct mc13xxx *mc13xxx;
 	struct mc13783_priv *priv;
@@ -804,11 +804,9 @@ static struct platform_driver mc13783_codec_driver = {
 		   .name = "mc13783-codec",
 		   .owner = THIS_MODULE,
 		   },
-	.probe = mc13783_codec_probe,
 	.remove = mc13783_codec_remove,
 };
-
-module_platform_driver(mc13783_codec_driver);
+module_platform_driver_probe(mc13783_codec_driver, mc13783_codec_probe);
 
 MODULE_DESCRIPTION("ASoC MC13783 driver");
 MODULE_AUTHOR("Sascha Hauer, Pengutronix <s.hauer@pengutronix.de>");
-- 
1.8.3.2

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

end of thread, other threads:[~2014-01-07 11:08 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-05  7:38 [PATCH 1/5] ASoC: mc13783: Use module_platform_driver_probe() Alexander Shiyan
2014-01-05  7:38 ` [PATCH 2/5] ASoC: mc13783: Use core error messages if registration fails Alexander Shiyan
2014-01-06 15:38   ` Mark Brown
2014-01-05  7:38 ` [PATCH 3/5] ASoC: mc13783: Drop fixed ADC & DAC ports usage Alexander Shiyan
2014-01-06 15:38   ` Mark Brown
2014-01-05  7:38 ` [PATCH 4/5] ASoC: mc13783: trivial: Cleanup module Alexander Shiyan
2014-01-06 15:38   ` Mark Brown
2014-01-05  7:38 ` [PATCH 5/5] ASoC: mc13783: Add devicetree support Alexander Shiyan
2014-01-06 13:28   ` Mark Brown
2014-01-06 13:46     ` Alexander Shiyan
2014-01-06 15:12       ` Mark Brown
2014-01-07  7:00         ` Alexander Shiyan
2014-01-07 11:08           ` Mark Brown
2014-01-06 15:38 ` [PATCH 1/5] ASoC: mc13783: Use module_platform_driver_probe() 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.