mfd: arizona: Only attempt to parse DT if platform data was not passed
authorLee Jones <lee.jones@linaro.org>
Fri, 27 Sep 2013 13:25:55 +0000 (14:25 +0100)
committerLee Jones <lee.jones@linaro.org>
Wed, 23 Oct 2013 15:21:41 +0000 (16:21 +0100)
commit22d7dc8aba3bf34fdf324f43718c238075cc7cf7
tree94d110c29650c6b3529f3fbdfeecbe128ed96ddf
parent5e172d751869ca6756a7276168e11d641dc6b58a
mfd: arizona: Only attempt to parse DT if platform data was not passed

If platform data is passed when probing the device then it should take
precedence over Device Tree. This patch saves cycles in the pdata case
and prevents error messages when DT is not passed.

Reported-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/arizona-core.c