mfd: pcf50633: Check return value of platform_device_add()
authorLee Jones <lee.jones@linaro.org>
Mon, 18 Aug 2014 14:54:06 +0000 (15:54 +0100)
committerLee Jones <lee.jones@linaro.org>
Fri, 26 Sep 2014 07:15:33 +0000 (08:15 +0100)
commitcddc11412d604ad673709e91e7a35e9f10c68b39
treeef3cd8c2e42790fe05861ca9d3b2d55bc993c9a0
parentb87d9a0fed5828e6cca4c3b02eacbc9c12a9a8e8
mfd: pcf50633: Check return value of platform_device_add()

The return value of platform_device_add() is checked after every
other use throughout the kernel.

We're also sliding in another cheeky dev_err() => dev_warn() change
as we're not actually erroring out here, rather reporting the fact
that something's gone wrong, but carrying on regardless.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/pcf50633-core.c