commit | a6dd114e16cbc4410049a90a8a67b967333d108d | [log] [tgz] |
---|---|---|
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | Sun Dec 02 05:10:44 2012 -0500 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Jan 15 19:06:42 2013 -0800 |
tree | 13c19c17a03671d7188bfbe96243feb0f89a0fcd | |
parent | 87b8bed2ce9394870a87e4fb2aef6752b2bd837d [diff] |
tty: serial: vt8500: fix return value check in vt8500_serial_probe() In case of error, function of_clk_get() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Acked-by: Tony Prisk <linux@prisktech.co.nz> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>