diff options
Diffstat (limited to 'drivers/spi/spi-tegra20-slink.c')
-rw-r--r-- | drivers/spi/spi-tegra20-slink.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/spi/spi-tegra20-slink.c b/drivers/spi/spi-tegra20-slink.c index 231b84523d37..c74ee87b243b 100644 --- a/drivers/spi/spi-tegra20-slink.c +++ b/drivers/spi/spi-tegra20-slink.c | |||
@@ -1164,7 +1164,7 @@ static int tegra_slink_probe(struct platform_device *pdev) | |||
1164 | pm_runtime_put(&pdev->dev); | 1164 | pm_runtime_put(&pdev->dev); |
1165 | 1165 | ||
1166 | master->dev.of_node = pdev->dev.of_node; | 1166 | master->dev.of_node = pdev->dev.of_node; |
1167 | ret = spi_register_master(master); | 1167 | ret = devm_spi_register_master(&pdev->dev, master); |
1168 | if (ret < 0) { | 1168 | if (ret < 0) { |
1169 | dev_err(&pdev->dev, "can not register to master err %d\n", ret); | 1169 | dev_err(&pdev->dev, "can not register to master err %d\n", ret); |
1170 | goto exit_pm_disable; | 1170 | goto exit_pm_disable; |
@@ -1191,7 +1191,6 @@ static int tegra_slink_remove(struct platform_device *pdev) | |||
1191 | struct tegra_slink_data *tspi = spi_master_get_devdata(master); | 1191 | struct tegra_slink_data *tspi = spi_master_get_devdata(master); |
1192 | 1192 | ||
1193 | free_irq(tspi->irq, tspi); | 1193 | free_irq(tspi->irq, tspi); |
1194 | spi_unregister_master(master); | ||
1195 | 1194 | ||
1196 | if (tspi->tx_dma_chan) | 1195 | if (tspi->tx_dma_chan) |
1197 | tegra_slink_deinit_dma_param(tspi, false); | 1196 | tegra_slink_deinit_dma_param(tspi, false); |