mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
bcma: Use dev_get_drvdata
Instead of using to_pci_dev + pci_get_drvdata, use dev_get_drvdata to make code simpler. Signed-off-by: Chuhong Yuan <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
This commit is contained in:
parent
3457f86da6
commit
9236c1250c
1 changed files with 2 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue