Changeset 29710


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

ar71xx: pb44_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/pb44_spi.c

    r29709 r29710  
    279279} 
    280280 
     281static void pb44_spi_shutdown(struct platform_device *pdev) 
     282{ 
     283        int ret; 
     284 
     285        ret = pb44_spi_remove(pdev); 
     286        if (ret) 
     287                dev_err(&pdev->dev, "shutdown failed with %d\n", ret); 
     288} 
     289 
    281290static struct platform_driver pb44_spi_drv = { 
    282291        .probe          = pb44_spi_probe, 
    283292        .remove         = pb44_spi_remove, 
     293        .shutdown       = pb44_spi_shutdown, 
    284294        .driver         = { 
    285295                .name   = DRV_NAME, 
Note: See TracChangeset for help on using the changeset viewer.