net: qcom/emac: do not use devm on internal phy pdev
authorTimur Tabi <timur@codeaurora.org>
Wed, 28 Sep 2016 16:58:42 +0000 (11:58 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Sep 2016 05:50:13 +0000 (01:50 -0400)
commit54e19bc74f3380d414681762ceed9f7245bc6a6e
treed633a3bdbc9839a376b96484e3c13fb29708de73
parent484611357c19f9e19ef742ebef4505a07d243cc9
net: qcom/emac: do not use devm on internal phy pdev

The platform_device returned by of_find_device_by_node() is not
automatically released when the driver unprobes.  Therefore,
managed calls like devm_ioremap_resource() should not be used.
Instead, we manually allocate the resources and then free them
on driver release.

Signed-off-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/emac/emac-sgmii.c
drivers/net/ethernet/qualcomm/emac/emac.c