ASoC: sti-sas: Fix checking return value for ERR_PTR
authorAxel Lin <axel.lin@ingics.com>
Mon, 13 Jul 2015 05:25:34 +0000 (13:25 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 13 Jul 2015 10:52:18 +0000 (11:52 +0100)
commite27d9ee6e709db070145847f9b5f52008f6eab84
tree21fe1cb3f981ccedead261ae724959d900cbfe3a
parent32a726b2e089ec1851965290a610c4ae9cab3303
ASoC: sti-sas: Fix checking return value for ERR_PTR

Both devm_regmap_init and syscon_regmap_lookup_by_phandle return ERR_PTR
on failure.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/sti-sas.c