]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/bcma/host_pci.c
bcma: invalidate the mapped core over suspend/resume
[mv-sheeva.git] / drivers / bcma / host_pci.c
index 443b83a2fd7aa012c1c6835137e2642a79499b41..c1ca9e3ada5c3737437c4088e33b47918b2d5157 100644 (file)
@@ -237,11 +237,14 @@ static void bcma_host_pci_remove(struct pci_dev *dev)
 #ifdef CONFIG_PM
 static int bcma_host_pci_suspend(struct pci_dev *dev, pm_message_t state)
 {
+       struct bcma_bus *bus = pci_get_drvdata(dev);
+
        /* Host specific */
        pci_save_state(dev);
        pci_disable_device(dev);
        pci_set_power_state(dev, pci_choose_state(dev, state));
 
+       bus->mapped_core = NULL;
        return 0;
 }