Commit d4979631 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

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: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent beb5f865
......@@ -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");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment