diff options
Diffstat (limited to 'drivers/spi/spi-orion.c')
-rw-r--r-- | drivers/spi/spi-orion.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/spi/spi-orion.c b/drivers/spi/spi-orion.c index 1d1d321d90c4..d96d67869d7b 100644 --- a/drivers/spi/spi-orion.c +++ b/drivers/spi/spi-orion.c | |||
@@ -457,7 +457,7 @@ static int orion_spi_probe(struct platform_device *pdev) | |||
457 | goto out_rel_clk; | 457 | goto out_rel_clk; |
458 | 458 | ||
459 | master->dev.of_node = pdev->dev.of_node; | 459 | master->dev.of_node = pdev->dev.of_node; |
460 | status = spi_register_master(master); | 460 | status = devm_spi_register_master(&pdev->dev, master); |
461 | if (status < 0) | 461 | if (status < 0) |
462 | goto out_rel_clk; | 462 | goto out_rel_clk; |
463 | 463 | ||
@@ -483,8 +483,6 @@ static int orion_spi_remove(struct platform_device *pdev) | |||
483 | clk_disable_unprepare(spi->clk); | 483 | clk_disable_unprepare(spi->clk); |
484 | clk_put(spi->clk); | 484 | clk_put(spi->clk); |
485 | 485 | ||
486 | spi_unregister_master(master); | ||
487 | |||
488 | return 0; | 486 | return 0; |
489 | } | 487 | } |
490 | 488 | ||