ASoC: tegra: use DAI's not card's dev for dev_err
authorStephen Warren <swarren@nvidia.com>
Wed, 6 Jun 2012 23:15:05 +0000 (17:15 -0600)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 7 Jun 2012 23:03:05 +0000 (07:03 +0800)
commitc92a40e3a163b6708e0dd82ba4612f79df846912
tree0a5cf29998b4d217b4d43c7eaf0bfe4428a140eb
parent40db77a0c4223d0b87c4b61ae38760d47593b7a5
ASoC: tegra: use DAI's not card's dev for dev_err

This is the actual device of the I2S or SPDIF controller reporting the
problem. If a future change converts these controllers to be CODECs, then
there may be no pcm associated with the substream, so this change avoids
a crash.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/tegra/tegra20_i2s.c
sound/soc/tegra/tegra20_spdif.c
sound/soc/tegra/tegra30_i2s.c