spi: topcliff-pch: Properly unregister platform devices on probe() error paths
authorAxel Lin <axel.lin@ingics.com>
Mon, 24 Mar 2014 07:46:55 +0000 (15:46 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 24 Mar 2014 10:57:02 +0000 (10:57 +0000)
commitb86e81d9a7d28a658904d8b14da7b5cb0d8f8a21
tree3248a8d2a95aad9d351400eea7011387ac664a0f
parentc1b20aa5d3b164a860e13b1bc5e85a24e45f0072
spi: topcliff-pch: Properly unregister platform devices on probe() error paths

Ensure all registered platform devices are unregistered on probe() error paths.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-topcliff-pch.c