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 <yongjun_wei@trendmicro.com.cn>
Acked-by: John Crispin <blogic@openwrt.org>
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 <ralf@linux-mips.org>

authored by Wei Yongjun and committed by Ralf Baechle cd5d5810 13b7ea63

Changed files
+1 -1
arch
mips
ralink
+1 -1
arch/mips/ralink/timer.c
··· 126 126 return -ENOENT; 127 127 } 128 128 129 - rt->membase = devm_request_and_ioremap(&pdev->dev, res); 129 + rt->membase = devm_ioremap_resource(&pdev->dev, res); 130 130 if (IS_ERR(rt->membase)) 131 131 return PTR_ERR(rt->membase); 132 132