]> git.baikalelectronics.ru Git - kernel.git/commit
clk: hisi: refine parameter checking for init
authorLeo Yan <leo.yan@linaro.org>
Mon, 3 Aug 2015 01:13:34 +0000 (09:13 +0800)
committerStephen Boyd <sboyd@codeaurora.org>
Mon, 3 Aug 2015 21:44:53 +0000 (14:44 -0700)
commitcbab6d0acc57ceb503d2c15f1f77d6dacf6a2a4e
tree60159d6d75090c29efe483d47dd3590893e997c7
parentb20aeb8cf93c32c1351be3742df4b17e4328649f
clk: hisi: refine parameter checking for init

*of_iomap()* will check the device node pointer, and if the pointer is
NULL it will return error code. So refine clock's init flow by checking
the device node with this simple way; and polish a little for the print
out message.

Signed-off-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/hisilicon/clk.c