Skip to contentSkip to conversation

ASoC: simple-card: Provide owner and MODULE_ALIAS()

PATCH New Fabio Estevam 1 participant 1 message Aug 23, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: simple-card: Provide owner and MODULE_ALIAS()

From: Fabio Estevam <[email protected]>

Add .owner field and also MODULE_ALIAS(), so that auto module loading can work.

---
 sound/soc/generic/simple-card.c | 2 ++
 1 file changed, 2 insertions(+)
sound/soc/generic/simple-card.c +2 -0
index 6cf8355..8c49147 100644
@@ -105,6 +105,7 @@ static int asoc_simple_card_remove(struct platform_device *pdev)
 static struct platform_driver asoc_simple_card = {
 	.driver = {
 		.name	= "asoc-simple-card",
+		.owner = THIS_MODULE,
 	},
 	.probe		= asoc_simple_card_probe,
 	.remove		= asoc_simple_card_remove,
@@ -112,6 +113,7 @@ static struct platform_driver asoc_simple_card = {
 
 module_platform_driver(asoc_simple_card);
 
+MODULE_ALIAS("platform:asoc-simple-card");
 MODULE_LICENSE("GPL");
 MODULE_DESCRIPTION("ASoC Simple Sound Card");
 MODULE_AUTHOR("Kuninori Morimoto <[email protected]>");
Signature · 1 line
1.8.1.2