summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-bcm2835aux.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2020-05-30 00:03:51 +0100
committerMark Brown <broonie@kernel.org>2020-05-30 00:03:51 +0100
commit0c0c5b8fabe596a7322f0b9b93b88f489b3f4bb3 (patch)
treeb137f835d2b336cbb68977ca16169b8f1ed14286 /drivers/spi/spi-bcm2835aux.c
parent9cb1fd0efd195590b828b9b865421ad345a4a145 (diff)
parent65e318e17358a3fd4fcb5a69d89b14016dee2f06 (diff)
downloadlinux-0c0c5b8fabe596a7322f0b9b93b88f489b3f4bb3.tar.bz2
Merge remote-tracking branch 'spi/for-5.7' into spi-linus
Diffstat (limited to 'drivers/spi/spi-bcm2835aux.c')
-rw-r--r--drivers/spi/spi-bcm2835aux.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/spi/spi-bcm2835aux.c b/drivers/spi/spi-bcm2835aux.c
index a2162ff56a12..c331efd6e86b 100644
--- a/drivers/spi/spi-bcm2835aux.c
+++ b/drivers/spi/spi-bcm2835aux.c
@@ -569,7 +569,7 @@ static int bcm2835aux_spi_probe(struct platform_device *pdev)
goto out_clk_disable;
}
- err = devm_spi_register_master(&pdev->dev, master);
+ err = spi_register_master(master);
if (err) {
dev_err(&pdev->dev, "could not register SPI master: %d\n", err);
goto out_clk_disable;
@@ -593,6 +593,8 @@ static int bcm2835aux_spi_remove(struct platform_device *pdev)
bcm2835aux_debugfs_remove(bs);
+ spi_unregister_master(master);
+
bcm2835aux_spi_reset_hw(bs);
/* disable the HW block by releasing the clock */