net: eth: xgene: devm_ioremap() returns NULL on error
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 8 Jan 2015 10:52:12 +0000 (13:52 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Jan 2015 20:40:18 +0000 (15:40 -0500)
commit3ec7a176fa81107c20f1693c64873c11a6cd8fa4
tree7d469bb3062ecbc25e598acf9d030527a22686a2
parent78890ed7549444fa9b9ff7e544d6bdd44b4c9566
net: eth: xgene: devm_ioremap() returns NULL on error

devm_ioremap() returns NULL on failure, it doesn't return an ERR_PTR.

Fixes: de7b5b3d790a ('net: eth: xgene: change APM X-Gene SoC platform ethernet to support ACPI')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Iyappan Subramanian <isubramanian@apm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/apm/xgene/xgene_enet_main.c