]> git.karo-electronics.de Git - karo-tx-linux.git/commit
serial: xilinx_uartps: fix return value check in xuartps_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sun, 2 Dec 2012 10:12:43 +0000 (05:12 -0500)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 21 Dec 2012 15:24:09 +0000 (16:24 +0100)
commita3607ea56f4455c515201ab91d2304a634925f6c
treef3a508dd4212d5b5ef4b46885a4030d4a59ba006
parentb4c582a92f41417154131083127e24b66cc4b31b
serial: xilinx_uartps: fix return value check in xuartps_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: Grant Likely <grant.likely@secretlab.ca>
drivers/tty/serial/xilinx_uartps.c