]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd576a76d9bc73448bd98558d78910de1d9665bbd
treed633a3bdbc9839a376b96484e3c13fb29708de73
parenta91a21eaf94f6172f832b4d320f02e02f68417f0
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