From: Takashi Iwai Date: Thu, 29 Jan 2015 16:32:26 +0000 (+0100) Subject: ALSA: pcm: Embed struct device X-Git-Tag: fixes-v4.0-rc1~146^2~23^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef46c7af93f98d07cd0ed891f93a26d135785526;p=pandora-kernel.git ALSA: pcm: Embed struct device Like previous patches, at this time we embed the struct device into PCM object. However, this needs a bit more caution: struct snd_pcm doesn't own one device but two, for both playback and capture! Thus not struct snd_pcm but struct snd_pcm_str object contains the device. Along with this change, pcm->dev field is dropped for avoiding confusion. It was meant to point to a non-standard parent. But, since now we can touch each struct device directly, we can manipulate the parent field easily there, too. Reviewed-by: Jaroslav Kysela Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed