summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2014-06-12 15:57:01 +0200
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:59:51 +0900
commit72ff0b4233da1887b44e7992a33a3abaf06ed033 (patch)
tree743a65fe9148398bd928a3bb419daed5ad247a67 /sound
parent717ca75d70bee9e7509a89ac85eafaa559f71758 (diff)
downloadlinux-3.10-72ff0b4233da1887b44e7992a33a3abaf06ed033.tar.gz
linux-3.10-72ff0b4233da1887b44e7992a33a3abaf06ed033.tar.bz2
linux-3.10-72ff0b4233da1887b44e7992a33a3abaf06ed033.zip
ASoC: odroidx2_max98090: Drop unnecessary of_node check
There is no way we can have probe() called with dev->of_node being NULL on Exynos, so remove the unneeded check. Change-Id: Icc815a56d2c0da14240dabc2097836e59117ccac Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/samsung/odroidx2_max98090.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/soc/samsung/odroidx2_max98090.c b/sound/soc/samsung/odroidx2_max98090.c
index db535f350eb..98caf9309cc 100644
--- a/sound/soc/samsung/odroidx2_max98090.c
+++ b/sound/soc/samsung/odroidx2_max98090.c
@@ -81,9 +81,6 @@ static int odroidx2_audio_probe(struct platform_device *pdev)
struct device_node *np = pdev->dev.of_node;
struct snd_soc_card *card = &odroidx2;
- if (!np)
- return -ENODEV;
-
card->dev = &pdev->dev;
odroidx2_dai[0].codec_of_node = of_parse_phandle(np,