diff options
Diffstat (limited to 'drivers/spi/spi-sh-hspi.c')
-rw-r--r-- | drivers/spi/spi-sh-hspi.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/spi/spi-sh-hspi.c b/drivers/spi/spi-sh-hspi.c index 934138c7b3d3..796c077ef439 100644 --- a/drivers/spi/spi-sh-hspi.c +++ b/drivers/spi/spi-sh-hspi.c | |||
@@ -283,7 +283,7 @@ static int __devinit hspi_probe(struct platform_device *pdev) | |||
283 | ret = spi_register_master(master); | 283 | ret = spi_register_master(master); |
284 | if (ret < 0) { | 284 | if (ret < 0) { |
285 | dev_err(&pdev->dev, "spi_register_master error.\n"); | 285 | dev_err(&pdev->dev, "spi_register_master error.\n"); |
286 | goto error2; | 286 | goto error1; |
287 | } | 287 | } |
288 | 288 | ||
289 | pm_runtime_enable(&pdev->dev); | 289 | pm_runtime_enable(&pdev->dev); |
@@ -292,8 +292,6 @@ static int __devinit hspi_probe(struct platform_device *pdev) | |||
292 | 292 | ||
293 | return 0; | 293 | return 0; |
294 | 294 | ||
295 | error2: | ||
296 | devm_iounmap(hspi->dev, hspi->addr); | ||
297 | error1: | 295 | error1: |
298 | clk_put(clk); | 296 | clk_put(clk); |
299 | error0: | 297 | error0: |
@@ -310,7 +308,6 @@ static int __devexit hspi_remove(struct platform_device *pdev) | |||
310 | 308 | ||
311 | clk_put(hspi->clk); | 309 | clk_put(hspi->clk); |
312 | spi_unregister_master(hspi->master); | 310 | spi_unregister_master(hspi->master); |
313 | devm_iounmap(hspi->dev, hspi->addr); | ||
314 | 311 | ||
315 | return 0; | 312 | return 0; |
316 | } | 313 | } |