From: Wei Yongjun Date: Thu, 1 Nov 2012 05:27:34 +0000 (+0800) Subject: tty: of_serial: fix return value check in of_platform_serial_setup() X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~83^2~76 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76cc43868c1e9d6344ad6c4992c4f6abd5204a8f;p=pandora-kernel.git tty: of_serial: fix return value check in of_platform_serial_setup() In case of error, the function clk_get() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed