Wei Yongjun 0fd7d43fbc net: qcom/emac: fix return value check in emac_sgmii_config()
In case of error, the function ioremap() returns NULL pointer
not ERR_PTR(). The IS_ERR() test in the return value check
should be replaced with NULL test.

Also add check for return value of platform_get_resource().

Fixes: 54e19bc74f33 ("net: qcom/emac: do not use devm on internal
phy pdev")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-10-03 21:53:03 -04:00
..
2016-08-06 09:20:13 -04:00
2016-09-30 01:26:00 -04:00
2016-08-15 11:57:55 -07:00
2016-09-24 09:36:12 -04:00
2016-09-19 01:25:22 -04:00
2016-08-31 14:33:09 -07:00
2016-09-20 22:55:23 -04:00
2016-09-09 16:52:43 -07:00
2016-08-30 22:27:18 -07:00
2016-09-17 10:05:05 -04:00