ALSA: pcm: Embed struct device
[pandora-kernel.git] / sound / pci / hda / hda_controller.c
index 0cfc9c8..712ec5c 100644 (file)
@@ -939,7 +939,8 @@ static int azx_attach_pcm_stream(struct hda_bus *bus, struct hda_codec *codec,
                                              chip->card->dev,
                                              size, MAX_PREALLOC_SIZE);
        /* link to codec */
-       pcm->dev = &codec->dev;
+       for (s = 0; s < 2; s++)
+               pcm->streams[s].dev.parent = &codec->dev;
        return 0;
 }