mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 05:34:36 +02:00
ar71xx: ar71xx_spi: add shutdown handler
This allows to access the flash from a kexec'd kernel. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29707 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
8e61fd2405
commit
3e74da5245
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user