Skip to content

Commit

Permalink
ASoC: gtm601: Fix modalias
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Mark Brown committed Jul 6, 2015
1 parent beb5f86 commit d497963
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sound/soc/codecs/gtm601.c
Original file line number Diff line number Diff line change
Expand Up @@ -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", },
Expand All @@ -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");

0 comments on commit d497963

Please sign in to comment.