|
@@ -283,7 +283,7 @@ static int __devinit hspi_probe(struct platform_device *pdev)
|
|
|
ret = spi_register_master(master);
|
|
|
if (ret < 0) {
|
|
|
dev_err(&pdev->dev, "spi_register_master error.\n");
|
|
|
- goto error2;
|
|
|
+ goto error1;
|
|
|
}
|
|
|
|
|
|
pm_runtime_enable(&pdev->dev);
|
|
@@ -292,8 +292,6 @@ static int __devinit hspi_probe(struct platform_device *pdev)
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
- error2:
|
|
|
- devm_iounmap(hspi->dev, hspi->addr);
|
|
|
error1:
|
|
|
clk_put(clk);
|
|
|
error0:
|
|
@@ -310,7 +308,6 @@ static int __devexit hspi_remove(struct platform_device *pdev)
|
|
|
|
|
|
clk_put(hspi->clk);
|
|
|
spi_unregister_master(hspi->master);
|
|
|
- devm_iounmap(hspi->dev, hspi->addr);
|
|
|
|
|
|
return 0;
|
|
|
}
|