Message ID | 1435114524.2082.1.camel@ingics.com (mailing list archive) |
---|---|
State | Accepted |
Commit | d49796317d4968b29ccdee7b9586385ae20b60a3 |
Headers | show |
On Wed, Jun 24, 2015 at 10:55:24AM +0800, Axel Lin wrote: > The MODULE_ALIAS needs to match the driver name to make module auto-loading > work. Also move MODULE_ALIAS close to other MODULE_* macro. Applied, thanks.
diff --git a/sound/soc/codecs/gtm601.c b/sound/soc/codecs/gtm601.c index 1b77ff2..a696e3e 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", }, @@ -96,3 +94,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");
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> --- sound/soc/codecs/gtm601.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)