of_mdio: use PTR_ERR_OR_ZERO()
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sat, 12 Mar 2016 21:34:58 +0000 (00:34 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Mar 2016 19:31:58 +0000 (15:31 -0400)
commit5189b1d82f1ce6c2749fa3499d28ffd3f5075543
tree38974f25aeaadc628868e5f6b793ed9b62af2df2
parentac044b902e50ba50713e257e331bc0e0c1c7d4d9
of_mdio: use PTR_ERR_OR_ZERO()

PTR_ERR_OR_ZERO() is open coded in of_phy_register_fixed_link(), so just
call it directly...

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/of/of_mdio.c