clk: scpi: Fix checking return value of platform_device_register_simple()
authorAxel Lin <axel.lin@ingics.com>
Fri, 4 Dec 2015 06:51:36 +0000 (14:51 +0800)
committerStephen Boyd <sboyd@codeaurora.org>
Fri, 29 Jan 2016 20:07:59 +0000 (12:07 -0800)
commitd22eb66b3cc3d7d486bc9fa8c6fdbce197eede5f
tree0f36f3b819f86bd3da6afd6fbed0d42ad64b67e6
parent1ce133ec89027dc2dff6d0784564da27f1c21fdc
clk: scpi: Fix checking return value of platform_device_register_simple()

platform_device_register_simple() returns ERR_PTR on error.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk-scpi.c