]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/bcma/host_pci.c
Merge tag 'gfs2-for-5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2
[linux.git] / drivers / bcma / host_pci.c
index f52239feb4cb2585757eb3448f3da363059b0544..69c10a7b7c617b0155637c42e53821693445b826 100644 (file)
@@ -260,8 +260,7 @@ static void bcma_host_pci_remove(struct pci_dev *dev)
 #ifdef CONFIG_PM_SLEEP
 static int bcma_host_pci_suspend(struct device *dev)
 {
-       struct pci_dev *pdev = to_pci_dev(dev);
-       struct bcma_bus *bus = pci_get_drvdata(pdev);
+       struct bcma_bus *bus = dev_get_drvdata(dev);
 
        bus->mapped_core = NULL;
 
@@ -270,8 +269,7 @@ static int bcma_host_pci_suspend(struct device *dev)
 
 static int bcma_host_pci_resume(struct device *dev)
 {
-       struct pci_dev *pdev = to_pci_dev(dev);
-       struct bcma_bus *bus = pci_get_drvdata(pdev);
+       struct bcma_bus *bus = dev_get_drvdata(dev);
 
        return bcma_bus_resume(bus);
 }