|
@@ -2470,7 +2470,7 @@ static int mv643xx_eth_shared_probe(struct platform_device *pdev)
|
|
|
if (msp == NULL)
|
|
|
return -ENOMEM;
|
|
|
|
|
|
- msp->base = ioremap(res->start, resource_size(res));
|
|
|
+ msp->base = devm_ioremap(&pdev->dev, res->start, resource_size(res));
|
|
|
if (msp->base == NULL)
|
|
|
return -ENOMEM;
|
|
|
|
|
@@ -2498,7 +2498,6 @@ static int mv643xx_eth_shared_remove(struct platform_device *pdev)
|
|
|
{
|
|
|
struct mv643xx_eth_shared_private *msp = platform_get_drvdata(pdev);
|
|
|
|
|
|
- iounmap(msp->base);
|
|
|
if (!IS_ERR(msp->clk))
|
|
|
clk_disable_unprepare(msp->clk);
|
|
|
|