projects
/
openwrt
/
svn-archive
/
archive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbb4c54
)
ar71xx: ar71xx_spi: add shutdown handler
author
Gabor Juhos
<juhosg@openwrt.org>
Wed, 11 Jan 2012 09:14:14 +0000
(09:14 +0000)
committer
Gabor Juhos
<juhosg@openwrt.org>
Wed, 11 Jan 2012 09:14:14 +0000
(09:14 +0000)
This allows to access the flash from a kexec'd kernel.
SVN-Revision: 29707
target/linux/ar71xx/files/drivers/spi/ar71xx_spi.c
patch
|
blob
|
history
diff --git
a/target/linux/ar71xx/files/drivers/spi/ar71xx_spi.c
b/target/linux/ar71xx/files/drivers/spi/ar71xx_spi.c
index be356aafb1b5719f7c43d5a90f86632114d731fc..d1ed731c143b6fc35af4d8d008e30ac713e46460 100644
(file)
--- a/
target/linux/ar71xx/files/drivers/spi/ar71xx_spi.c
+++ b/
target/linux/ar71xx/files/drivers/spi/ar71xx_spi.c
@@
-243,9
+243,19
@@
static int ar71xx_spi_remove(struct platform_device *pdev)
return 0;
}
+static void ar71xx_spi_shutdown(struct platform_device *pdev)
+{
+ int ret;
+
+ ret = ar71xx_spi_remove(pdev);
+ if (ret)
+ dev_err(&pdev->dev, "shutdown failed with %d\n", ret);
+}
+
static struct platform_driver ar71xx_spi_drv = {
.probe = ar71xx_spi_probe,
.remove = ar71xx_spi_remove,
+ .shutdown = ar71xx_spi_shutdown,
.driver = {
.name = DRV_NAME,
.owner = THIS_MODULE,