mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[PATCH] PCI: Add pci shutdown ability
Now pci drivers can know when the system is going down without having to add a reboot notifier event. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
4c0619add8
commit
c895817722
2 changed files with 10 additions and 0 deletions
|
@ -671,6 +671,7 @@ struct pci_driver {
|
|||
int (*suspend) (struct pci_dev *dev, pm_message_t state); /* Device suspended */
|
||||
int (*resume) (struct pci_dev *dev); /* Device woken up */
|
||||
int (*enable_wake) (struct pci_dev *dev, pci_power_t state, int enable); /* Enable wake event */
|
||||
void (*shutdown) (struct pci_dev *dev);
|
||||
|
||||
struct device_driver driver;
|
||||
struct pci_dynids dynids;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue