sound: fix platform driver hotplug/coldplug
Subsystems (3)
PATCH 1/1 sound: fix platform driver hotplug/coldplug
From: Kay Sievers <[email protected]>
Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform modalias is prefixed with "platform:". Add MODULE_ALIAS() to the hotpluggable sound platform drivers, to re-enable auto loading.
[ [email protected]: more drivers, registration fixes ]
Signed-off-by Kay Sievers <[email protected]>
Signed-off-by David Brownell <[email protected]>
---
NOTE: not sent to subscribers-only list: [email protected]
sound/arm/pxa2xx-ac97.c | 2 ++ sound/drivers/ml403-ac97cr.c | 4 ++++ sound/soc/soc-core.c | 2 ++ 3 files changed, 8 insertions(+)
sound/arm/pxa2xx-ac97.c +2 -0
@@ -391,6 +391,7 @@ static struct platform_driver pxa2xx_ac9 .resume = pxa2xx_ac97_resume, .driver = { .name = "pxa2xx-ac97", + .owner = THIS_MODULE, }, };
@@ -410,3 +411,4 @@ module_exit(pxa2xx_ac97_exit);MODULE_AUTHOR ("Nicolas Pitre" );MODULE_DESCRIPTION ("AC97 driver for the Intel PXA2xx chip" );MODULE_LICENSE ("GPL" ); +MODULE_ALIAS ("platform:pxa2xx-ac97" );
sound/drivers/ml403-ac97cr.c +4 -0
@@ -1330,11 +1330,15 @@ static int snd_ml403_ac97cr_remove(strucreturn 0 ; } +/* work with hotplug and coldplug */ +MODULE_ALIAS ("platform:" SND_ML403_AC97CR_DRIVER ); +static struct platform_driver snd_ml403_ac97cr_driver = { .probe = snd_ml403_ac97cr_probe, .remove = snd_ml403_ac97cr_remove, .driver = { .name =SND_ML403_AC97CR_DRIVER , + .owner =THIS_MODULE , }, };
sound/soc/soc-core.c +2 -0
@@ -839,6 +839,7 @@ static int soc_remove(struct platform_destatic struct platform_driver soc_driver = { .driver = { .name ="soc-audio" , + .owner =THIS_MODULE , }, .probe = soc_probe, .remove = soc_remove,
@@ -1601,3 +1602,4 @@ module_exit(snd_soc_exit);MODULE_AUTHOR ("Liam Girdwood, [email protected], www.wolfsonmicro.com" );MODULE_DESCRIPTION ("ALSA SoC Core" );MODULE_LICENSE ("GPL" ); +MODULE_ALIAS ("platform:soc-audio" );