On 31/10/13 08:51, Wei Yongjun wrote:
From: Wei Yongjun<yongjun_wei@xxxxxxxxxxxxxxxxx> 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<yongjun_wei@xxxxxxxxxxxxxxxxx>
Thanks for spotting the bug. Acked-by: John Crispin <blogic@xxxxxxxxxxx>