From: Wei Yongjun Date: Thu, 31 Oct 2013 07:51:38 +0000 (+0800) Subject: MIPS: ralink: fix return value check in rt_timer_probe() X-Git-Tag: v3.12~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd5d58108e41b0edecc1e7a6468cbe06ce03be3f;p=pandora-kernel.git MIPS: ralink: fix return value check in rt_timer_probe() In case of error, the function devm_request_and_ioremap() returns NULL pointer not ERR_PTR(). Fix it by using devm_ioremap_resource() instead of devm_request_and_ioremap(). Signed-off-by: Wei Yongjun Acked-by: John Crispin Cc: grant.likely@linaro.org Cc: rob.herring@calxeda.com Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/6098/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed