CHROMIUM: ASoC: samsung: fix error for hdmi-audio
authorVincent Palatin <vpalatin@chromium.org>
Fri, 12 Oct 2012 23:12:29 +0000 (16:12 -0700)
committerGerrit <chrome-bot@google.com>
Sat, 17 Nov 2012 02:35:25 +0000 (18:35 -0800)
commit7d50010a5902f4bfde9daa06444da56ad2b87378
treecd9c91b9de45bee60f15ba50005fd6ea668a8e05
parent8293ffb9e812a5051df9017986d297099aae9c40
CHROMIUM: ASoC: samsung: fix error for hdmi-audio

The result of the device tree look-up for the hdmi-audio device
was checked against the wrong variable.
As a consequence, if the hdmi-audio device is disabled, the kernel will
crash at startup instead of skipping the plugin.

Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BUG=chrome-os-partner:14489
TEST=boot on Spring with hdmi-audio disabled in the device tree
and see we are longer crashing in the max98095 probing.

Change-Id: I613b53633eb7814e63a7459704f3780ded62a2a0
Reviewed-on: https://gerrit.chromium.org/gerrit/38261
Commit-Ready: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
sound/soc/samsung/daisy_max98095.c