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>
このコミットが含まれているのは:
@@ -723,6 +723,10 @@ static int emac_remove(struct platform_device *pdev)
|
||||
mdiobus_unregister(adpt->mii_bus);
|
||||
free_netdev(netdev);
|
||||
|
||||
if (adpt->phy.digital)
|
||||
iounmap(adpt->phy.digital);
|
||||
iounmap(adpt->phy.base);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
新しいイシューから参照
ユーザーをブロックする