Changeset 29707


Ignore:
Timestamp:
2012-01-11T10:14:14+01:00 (6 years ago)
Author:
juhosg
Message:

ar71xx: ar71xx_spi: add shutdown handler

This allows to access the flash from a kexec'd kernel.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/drivers/spi/ar71xx_spi.c

    r29706 r29707  
    244244} 
    245245 
     246static void ar71xx_spi_shutdown(struct platform_device *pdev) 
     247{ 
     248        int ret; 
     249 
     250        ret = ar71xx_spi_remove(pdev); 
     251        if (ret) 
     252                dev_err(&pdev->dev, "shutdown failed with %d\n", ret); 
     253} 
     254 
    246255static struct platform_driver ar71xx_spi_drv = { 
    247256        .probe          = ar71xx_spi_probe, 
    248257        .remove         = ar71xx_spi_remove, 
     258        .shutdown       = ar71xx_spi_shutdown, 
    249259        .driver         = { 
    250260                .name   = DRV_NAME, 
Note: See TracChangeset for help on using the changeset viewer.