|
@@ -186,6 +186,7 @@ static int stmmac_pltfr_remove(struct platform_device *pdev)
|
|
|
{
|
|
|
struct net_device *ndev = platform_get_drvdata(pdev);
|
|
|
struct stmmac_priv *priv = netdev_priv(ndev);
|
|
|
+ void __iomem *addr = priv->ioaddr;
|
|
|
struct resource *res;
|
|
|
int ret = stmmac_dvr_remove(ndev);
|
|
|
|
|
@@ -194,7 +195,7 @@ static int stmmac_pltfr_remove(struct platform_device *pdev)
|
|
|
|
|
|
platform_set_drvdata(pdev, NULL);
|
|
|
|
|
|
- iounmap((void __force __iomem *)priv->ioaddr);
|
|
|
+ iounmap(addr);
|
|
|
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
|
|
release_mem_region(res->start, resource_size(res));
|
|
|
|