ARM: pxa: ssp: Check return values from phandle lookups
authorOlof Johansson <olof@lixom.net>
Thu, 5 Sep 2013 19:30:52 +0000 (12:30 -0700)
committerOlof Johansson <olof@lixom.net>
Tue, 10 Sep 2013 00:14:09 +0000 (17:14 -0700)
commitd5ece9373c6e0f95ae59f303810e1ccbcd044629
tree18e7326ccb9cc58e417e1b9a651a4da8d2ca88ae
parent640414171818c6293c23e74a28d1c69b2a1a7fe5
ARM: pxa: ssp: Check return values from phandle lookups

Commit a6e56c28a178cef5f (ARM: pxa: ssp: add DT bindings) causes warnings
when built:

arch/arm/plat-pxa/ssp.c: In function 'pxa_ssp_probe':
arch/arm/plat-pxa/ssp.c:145:17: warning: 'dma_spec.args[0]' may be used
uninitialized in this function [-Wmaybe-uninitialized]

Resolve by checking return values and aborting when lookups fail.

Cc: Daniel Mack <zonque@gmail.com>
Cc: Mark Brown <broonie@linaro.org>
Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/plat-pxa/ssp.c