diff options
Diffstat (limited to 'sound/drivers/ml403-ac97cr.c')
-rw-r--r-- | sound/drivers/ml403-ac97cr.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/drivers/ml403-ac97cr.c b/sound/drivers/ml403-ac97cr.c index 05a871aa7b81..ecdbeb6d3603 100644 --- a/sound/drivers/ml403-ac97cr.c +++ b/sound/drivers/ml403-ac97cr.c | |||
@@ -1191,8 +1191,6 @@ snd_ml403_ac97cr_create(struct snd_card *card, struct platform_device *pfdev, | |||
1191 | return err; | 1191 | return err; |
1192 | } | 1192 | } |
1193 | 1193 | ||
1194 | snd_card_set_dev(card, &pfdev->dev); | ||
1195 | |||
1196 | *rml403_ac97cr = ml403_ac97cr; | 1194 | *rml403_ac97cr = ml403_ac97cr; |
1197 | return 0; | 1195 | return 0; |
1198 | } | 1196 | } |
@@ -1330,11 +1328,15 @@ static int snd_ml403_ac97cr_remove(struct platform_device *pfdev) | |||
1330 | return 0; | 1328 | return 0; |
1331 | } | 1329 | } |
1332 | 1330 | ||
1331 | /* work with hotplug and coldplug */ | ||
1332 | MODULE_ALIAS("platform:" SND_ML403_AC97CR_DRIVER); | ||
1333 | |||
1333 | static struct platform_driver snd_ml403_ac97cr_driver = { | 1334 | static struct platform_driver snd_ml403_ac97cr_driver = { |
1334 | .probe = snd_ml403_ac97cr_probe, | 1335 | .probe = snd_ml403_ac97cr_probe, |
1335 | .remove = snd_ml403_ac97cr_remove, | 1336 | .remove = snd_ml403_ac97cr_remove, |
1336 | .driver = { | 1337 | .driver = { |
1337 | .name = SND_ML403_AC97CR_DRIVER, | 1338 | .name = SND_ML403_AC97CR_DRIVER, |
1339 | .owner = THIS_MODULE, | ||
1338 | }, | 1340 | }, |
1339 | }; | 1341 | }; |
1340 | 1342 | ||