serial: sprd: check for NULL after calling devm_clk_get
authorFernando Guzman Lugo <fernando.guzman.lugo@intel.com>
Thu, 11 Jun 2015 02:39:46 +0000 (10:39 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Jun 2015 00:39:50 +0000 (17:39 -0700)
commitff0daa1c1a28c9866d735852a1cbfb9c757aaa7b
tree9281508e59138fc2844d277a6630e39095994c55
parent899f0c1c7dbcc487fdc8756a49ff70b1d5d75f89
serial: sprd: check for NULL after calling devm_clk_get

In platforms which does not use CLK framework (HAVE_CLK not set), the
clk_* functions return NULL instead of an error. This patch handles that
scenario.

Signed-off-by: Fernando Guzman Lugo <fernando.guzman.lugo@intel.com>
Signed-off-by: Chunyan Zhang <chunyan.zhang@spreadtrum.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sprd_serial.c