summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-pxa2xx.c
diff options
context:
space:
mode:
authorLubomir Rintel2018-09-17 14:11:24 +0200
committerMark Brown2018-09-17 23:33:57 +0200
commit8089babee17c09cdd51ac1390e444ee0be0c2291 (patch)
tree8847f2b6d786860b0751e5e16b4832ddb701e929 /drivers/spi/spi-pxa2xx.c
parentspi: spi-davinci: Add support for SPI_CS_WORD (diff)
downloadkernel-qcow2-linux-8089babee17c09cdd51ac1390e444ee0be0c2291.tar.gz
kernel-qcow2-linux-8089babee17c09cdd51ac1390e444ee0be0c2291.tar.xz
kernel-qcow2-linux-8089babee17c09cdd51ac1390e444ee0be0c2291.zip
spi: pxa2xx: Remove the shutdown callback
It makes no sense to remove the device on shutdown. And it break things when the hardware crucial for shutdown (such as the embedded controller) is attached to the SPI bus. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-pxa2xx.c')
-rw-r--r--drivers/spi/spi-pxa2xx.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c
index e3cbc66a7061..fc9aac214239 100644
--- a/drivers/spi/spi-pxa2xx.c
+++ b/drivers/spi/spi-pxa2xx.c
@@ -1764,14 +1764,6 @@ static int pxa2xx_spi_remove(struct platform_device *pdev)
return 0;
}
-static void pxa2xx_spi_shutdown(struct platform_device *pdev)
-{
- int status = 0;
-
- if ((status = pxa2xx_spi_remove(pdev)) != 0)
- dev_err(&pdev->dev, "shutdown failed with %d\n", status);
-}
-
#ifdef CONFIG_PM_SLEEP
static int pxa2xx_spi_suspend(struct device *dev)
{
@@ -1845,7 +1837,6 @@ static struct platform_driver driver = {
},
.probe = pxa2xx_spi_probe,
.remove = pxa2xx_spi_remove,
- .shutdown = pxa2xx_spi_shutdown,
};
static int __init pxa2xx_spi_init(void)