Changeset 454


Ignore:
Timestamp:
Jun 25, 2009, 11:35:53 AM (16 years ago)
Author:
Paul Smedley
Message:

Change pci_save_state from type void to type int

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/include/linux/pci.h

    r441 r454  
    661661void pci_disable_device(struct pci_dev *dev);
    662662
    663 void pci_save_state(struct pci_dev *dev);
     663int pci_save_state(struct pci_dev *dev);
    664664int pci_restore_state(struct pci_dev *dev);
    665665
  • GPL/trunk/lib32/pci.c

    r453 r454  
    747747static struct saved_config_tbl saved_tbl[16];
    748748
    749 void pci_save_state(struct pci_dev *pci)
     749int pci_save_state(struct pci_dev *pci)
    750750{
    751751    int i;
     
    755755            saved_tbl[i].pci = pci;
    756756            pci_orig_save_state(pci, saved_tbl[i].config);
    757             return;
     757            return 1;
    758758        }
    759759    }
    760760    printk(KERN_DEBUG "snd: no pci config space found!\n");
     761    return 0;
    761762}
    762763
Note: See TracChangeset for help on using the changeset viewer.