From: Axel Lin <axel.lin@ingics.com>
To: Mark Brown <broonie@kernel.org>
Cc: Marek Belisko <marek@goldelico.com>,
Liam Girdwood <lgirdwood@gmail.com>,
alsa-devel@alsa-project.org
Subject: [PATCH 2/2] ASoC: gtm601: Remove .owner field from platform driver
Date: Wed, 24 Jun 2015 10:56:31 +0800 [thread overview]
Message-ID: <1435114591.2082.2.camel@ingics.com> (raw)
In-Reply-To: <1435114524.2082.1.camel@ingics.com>
Remove .owner field because the core will set it.
Also clean up the code a bit to fix indent and make soc_codec_dev_gtm601
const.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
sound/soc/codecs/gtm601.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/sound/soc/codecs/gtm601.c b/sound/soc/codecs/gtm601.c
index a696e3e..a652f19 100644
--- a/sound/soc/codecs/gtm601.c
+++ b/sound/soc/codecs/gtm601.c
@@ -51,7 +51,7 @@ struct snd_soc_dai_driver gtm601_dai = {
},
};
-static struct snd_soc_codec_driver soc_codec_dev_gtm601 = {
+static const struct snd_soc_codec_driver soc_codec_dev_gtm601 = {
.dapm_widgets = gtm601_dapm_widgets,
.num_dapm_widgets = ARRAY_SIZE(gtm601_dapm_widgets),
.dapm_routes = gtm601_dapm_routes,
@@ -80,11 +80,9 @@ MODULE_DEVICE_TABLE(of, gtm601_codec_of_match);
static struct platform_driver gtm601_codec_driver = {
.driver = {
- .name = "gtm601",
- .owner = THIS_MODULE,
- .of_match_table = of_match_ptr(gtm601_codec_of_match),
+ .name = "gtm601",
+ .of_match_table = of_match_ptr(gtm601_codec_of_match),
},
-
.probe = gtm601_platform_probe,
.remove = gtm601_platform_remove,
};
--
2.1.0
next prev parent reply other threads:[~2015-06-24 2:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-24 2:55 [PATCH 1/2] ASoC: gtm601: Fix modalias Axel Lin
2015-06-24 2:56 ` Axel Lin [this message]
2015-06-24 10:23 ` [PATCH 2/2] ASoC: gtm601: Remove .owner field from platform driver Mark Brown
2015-06-24 11:46 ` Axel Lin
2015-06-24 11:50 ` Mark Brown
2015-06-25 8:42 ` Axel Lin
2015-06-24 10:23 ` [PATCH 1/2] ASoC: gtm601: Fix modalias 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=1435114591.2082.2.camel@ingics.com \
--to=axel.lin@ingics.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=marek@goldelico.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 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.