From: Timur Tabi <timur@freescale.com>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>,
alsa-devel@alsa-project.org
Subject: [PATCH 2/2] ASoC: fsl: move machine drivers to late_initcall()
Date: Tue, 11 Sep 2012 11:23:27 -0500 [thread overview]
Message-ID: <1347380607-1564-2-git-send-email-timur@freescale.com> (raw)
In-Reply-To: <1347380607-1564-1-git-send-email-timur@freescale.com>
Transition the module initialization to late_initcall(), so that
the machine driver loads last. Although this is technically not
necessary, it does avoid this error message at boot time:
ALSA device list:
No soundcards found.
Signed-off-by: Timur Tabi <timur@freescale.com>
---
sound/soc/fsl/mpc8610_hpcd.c | 2 +-
sound/soc/fsl/p1022_ds.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/fsl/mpc8610_hpcd.c b/sound/soc/fsl/mpc8610_hpcd.c
index 5479882..65347de 100644
--- a/sound/soc/fsl/mpc8610_hpcd.c
+++ b/sound/soc/fsl/mpc8610_hpcd.c
@@ -430,7 +430,7 @@ static void __exit mpc8610_hpcd_exit(void)
platform_driver_unregister(&mpc8610_hpcd_driver);
}
-module_init(mpc8610_hpcd_init);
+late_initcall(mpc8610_hpcd_init);
module_exit(mpc8610_hpcd_exit);
MODULE_AUTHOR("Timur Tabi <timur@freescale.com>");
diff --git a/sound/soc/fsl/p1022_ds.c b/sound/soc/fsl/p1022_ds.c
index a44a8c3..13110c4 100644
--- a/sound/soc/fsl/p1022_ds.c
+++ b/sound/soc/fsl/p1022_ds.c
@@ -439,7 +439,7 @@ static void __exit p1022_ds_exit(void)
platform_driver_unregister(&p1022_ds_driver);
}
-module_init(p1022_ds_init);
+late_initcall(p1022_ds_init);
module_exit(p1022_ds_exit);
MODULE_AUTHOR("Timur Tabi <timur@freescale.com>");
--
1.7.3.4
next prev parent reply other threads:[~2012-09-11 16:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-11 16:23 [PATCH 1/2] [v2] ASoC: fsl: use snd_soc_register_card to register the card Timur Tabi
2012-09-11 16:23 ` Timur Tabi [this message]
2012-09-11 20:05 ` [linuxppc-release] " Timur Tabi
2012-09-12 1:32 ` Mark Brown
2012-09-12 15:12 ` Timur Tabi
2012-09-13 4:07 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1347380607-1564-2-git-send-email-timur@freescale.com \
--to=timur@freescale.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).