projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx: rename vsc7385 spi driver
[openwrt.git]
/
target
/
linux
/
ar71xx
/
files
/
drivers
/
spi
/
ar71xx_spi.c
diff --git
a/target/linux/ar71xx/files/drivers/spi/ar71xx_spi.c
b/target/linux/ar71xx/files/drivers/spi/ar71xx_spi.c
index
be356aa
..
d1ed731
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;
}
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,
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,
.driver = {
.name = DRV_NAME,
.owner = THIS_MODULE,
This page took
0.024069 seconds
and
4
git commands to generate.