summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/gtm601.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-06-24 10:55:24 +0800
committerMark Brown <broonie@kernel.org>2015-07-06 20:29:43 +0100
commitd49796317d4968b29ccdee7b9586385ae20b60a3 (patch)
tree4dd4e78f7c2dd6f2e78bf117e6ac811a9d0dbb5a /sound/soc/codecs/gtm601.c
parentbeb5f8659ccd89a70b0a3ff28e32dbd8065df818 (diff)
ASoC: gtm601: Fix modalias
The MODULE_ALIAS needs to match the driver name to make module auto-loading work. Also move MODULE_ALIAS close to other MODULE_* macro. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/gtm601.c')
-rw-r--r--sound/soc/codecs/gtm601.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/codecs/gtm601.c b/sound/soc/codecs/gtm601.c
index 7004eba4b752..12d15e5b50f0 100644
--- a/sound/soc/codecs/gtm601.c
+++ b/sound/soc/codecs/gtm601.c
@@ -70,8 +70,6 @@ static int gtm601_platform_remove(struct platform_device *pdev)
return 0;
}
-MODULE_ALIAS("platform:gtm601_codec_audio");
-
#if defined(CONFIG_OF)
static const struct of_device_id gtm601_codec_of_match[] = {
{ .compatible = "option,gtm601", },
@@ -95,3 +93,4 @@ module_platform_driver(gtm601_codec_driver);
MODULE_DESCRIPTION("ASoC gtm601 driver");
MODULE_AUTHOR("Marek Belisko <marek@goldelico.com>");
MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:gtm601");