X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=drivers%2Fpci%2Fpci.c;h=7b70312181d78a28cdfba11639c673626ee8eed6;hp=dbd0f947f49728a3849f7e96b03a2de1f2ae180f;hb=d90a7e86401ffea2163a4337f3a47f3909c4e255;hpb=44f167d376aa42d59d40406036e901a5cf03567f diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index dbd0f947f497..7b70312181d7 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -846,6 +846,8 @@ pci_restore_state(struct pci_dev *dev) int i; u32 val; + if (!dev->state_saved) + return 0; /* PCI Express register must be restored first */ pci_restore_pcie_state(dev);