net: mediatek: fix checking for NULL instead of IS_ERR() in .probe
authorVladimir Zapolskiy <vz@mleia.com>
Tue, 22 Mar 2016 23:06:04 +0000 (01:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Mar 2016 17:49:13 +0000 (13:49 -0400)
commit621e49f6d80a731dd3073569571c4579352cfb1c
treef88f2e2fe58586be64818bad1ac7c9d9f2724060
parent9eb13f65c305ec6687d7666abce14e6c047fa872
net: mediatek: fix checking for NULL instead of IS_ERR() in .probe

devm_ioremap_resource() returns ERR_PTR() value on error, it never
returns NULL, fix it and propagate the returned error upwards.

Fixes: 656e705243fd ("net-next: mediatek: add support for MT7623 ethernet")
Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Reviewed-by: Matthias Brugger <mbrugger@suse.com>
Acked-by: John Crispin <blogic@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c