]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/drivers/ml403-ac97cr.c
hwmon: (adt7473) Fix voltage conversion routines
[linux-2.6-omap-h63xx.git] / sound / drivers / ml403-ac97cr.c
index 05a871aa7b818fd45eed66d40ef396a5075eccc7..ecdbeb6d36033af8a9be9ee69dc0c9896f78cf82 100644 (file)
@@ -1191,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;
 }
@@ -1330,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,
        },
 };