diff options
author | Mark Brown <broonie@linaro.org> | 2013-10-25 10:51:21 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-10-25 10:51:21 +0200 |
commit | 52d85ebb7b639448e596a8577bf981f5b139f4fd (patch) | |
tree | 7632999ecf194b9863ad4a86533a91b9f78a28ce /drivers/spi/spi-sh-hspi.c | |
parent | Merge remote-tracking branch 'spi/topic/atmel' into spi-next (diff) | |
parent | spi: spi-bfin5xx: replace platform_driver_probe to support deferred probing (diff) | |
download | linux-52d85ebb7b639448e596a8577bf981f5b139f4fd.tar.xz linux-52d85ebb7b639448e596a8577bf981f5b139f4fd.zip |
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) master->mode_bits = SPI_CPOL | SPI_CPHA; master->auto_runtime_pm = true; master->transfer_one_message = hspi_transfer_one_message; - ret = spi_register_master(master); + ret = devm_spi_register_master(&pdev->dev, master); if (ret < 0) { dev_err(&pdev->dev, "spi_register_master error.\n"); goto error1; @@ -328,7 +328,6 @@ static int hspi_remove(struct platform_device *pdev) pm_runtime_disable(&pdev->dev); clk_put(hspi->clk); - spi_unregister_master(hspi->master); return 0; } |