]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/drivers/ml403-ac97cr.c
[PATCH] reiserfs: add missing llseek method
[linux-2.6-omap-h63xx.git] / sound / drivers / ml403-ac97cr.c
index c76a24e337f9a08164c1dffd6d7a6bba87fa9b40..ecdbeb6d36033af8a9be9ee69dc0c9896f78cf82 100644 (file)
@@ -33,7 +33,6 @@
  *   But there might still be some ...
  */
 
-#include <sound/driver.h>
 #include <linux/init.h>
 #include <linux/moduleparam.h>
 
@@ -1192,8 +1191,6 @@ snd_ml403_ac97cr_create(struct snd_card *card, struct platform_device *pfdev,
                return err;
        }
 
-       snd_card_set_dev(card, &pfdev->dev);
-
        *rml403_ac97cr = ml403_ac97cr;
        return 0;
 }
@@ -1312,6 +1309,8 @@ static int __devinit snd_ml403_ac97cr_probe(struct platform_device *pfdev)
                (unsigned long)ml403_ac97cr->port, ml403_ac97cr->irq,
                ml403_ac97cr->capture_irq, dev + 1);
 
+       snd_card_set_dev(card, &pfdev->dev);
+
        err = snd_card_register(card);
        if (err < 0) {
                snd_card_free(card);
@@ -1329,11 +1328,15 @@ static int snd_ml403_ac97cr_remove(struct platform_device *pfdev)
        return 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,
        },
 };