diff options
author | Mark Brown <broonie@linaro.org> | 2013-10-25 04:51:21 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-10-25 04:51:21 -0400 |
commit | 52d85ebb7b639448e596a8577bf981f5b139f4fd (patch) | |
tree | 7632999ecf194b9863ad4a86533a91b9f78a28ce /drivers/spi/spi-sh-hspi.c | |
parent | 2ef2e60d2f4d470b0cb591baeaf942316c0673ed (diff) | |
parent | db9371b853e7cebce93f0775215ef297b8d0bf93 (diff) |
Merge remote-tracking branch 'spi/topic/bfin' into spi-next
Diffstat (limited to 'drivers/spi/spi-sh-hspi.c')
-rw-r--r-- | drivers/spi/spi-sh-hspi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/spi/spi-sh-hspi.c b/drivers/spi/spi-sh-hspi.c index e488a90a98b8..7e749a22f51e 100644 --- a/drivers/spi/spi-sh-hspi.c +++ b/drivers/spi/spi-sh-hspi.c | |||
@@ -305,7 +305,7 @@ static int hspi_probe(struct platform_device *pdev) | |||
305 | master->mode_bits = SPI_CPOL | SPI_CPHA; | 305 | master->mode_bits = SPI_CPOL | SPI_CPHA; |
306 | master->auto_runtime_pm = true; | 306 | master->auto_runtime_pm = true; |
307 | master->transfer_one_message = hspi_transfer_one_message; | 307 | master->transfer_one_message = hspi_transfer_one_message; |
308 | ret = spi_register_master(master); | 308 | ret = devm_spi_register_master(&pdev->dev, master); |
309 | if (ret < 0) { | 309 | if (ret < 0) { |
310 | dev_err(&pdev->dev, "spi_register_master error.\n"); | 310 | dev_err(&pdev->dev, "spi_register_master error.\n"); |
311 | goto error1; | 311 | goto error1; |
@@ -328,7 +328,6 @@ static int hspi_remove(struct platform_device *pdev) | |||
328 | pm_runtime_disable(&pdev->dev); | 328 | pm_runtime_disable(&pdev->dev); |
329 | 329 | ||
330 | clk_put(hspi->clk); | 330 | clk_put(hspi->clk); |
331 | spi_unregister_master(hspi->master); | ||
332 | 331 | ||
333 | return 0; | 332 | return 0; |
334 | } | 333 | } |