diff options
author | Geliang Tang <geliangtang@163.com> | 2015-12-27 05:46:00 -0500 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2016-01-05 12:04:57 -0500 |
commit | 923a231c871120c08a74a1fda397fed184334924 (patch) | |
tree | 4111eb43770941613c01ad0733508c9de9d09a94 | |
parent | 12dd7fe2967a7e60e689e7e9a016b8288c8ea756 (diff) |
mmc: sdhci-pci: use to_pci_dev()
Use to_pci_dev() instead of open-coding it.
Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r-- | drivers/mmc/host/sdhci-pci-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/host/sdhci-pci-core.c b/drivers/mmc/host/sdhci-pci-core.c index 08f4a9fe8550..cc851b065d0a 100644 --- a/drivers/mmc/host/sdhci-pci-core.c +++ b/drivers/mmc/host/sdhci-pci-core.c | |||
@@ -1464,7 +1464,7 @@ static int sdhci_pci_resume(struct device *dev) | |||
1464 | 1464 | ||
1465 | static int sdhci_pci_runtime_suspend(struct device *dev) | 1465 | static int sdhci_pci_runtime_suspend(struct device *dev) |
1466 | { | 1466 | { |
1467 | struct pci_dev *pdev = container_of(dev, struct pci_dev, dev); | 1467 | struct pci_dev *pdev = to_pci_dev(dev); |
1468 | struct sdhci_pci_chip *chip; | 1468 | struct sdhci_pci_chip *chip; |
1469 | struct sdhci_pci_slot *slot; | 1469 | struct sdhci_pci_slot *slot; |
1470 | int i, ret; | 1470 | int i, ret; |
@@ -1500,7 +1500,7 @@ err_pci_runtime_suspend: | |||
1500 | 1500 | ||
1501 | static int sdhci_pci_runtime_resume(struct device *dev) | 1501 | static int sdhci_pci_runtime_resume(struct device *dev) |
1502 | { | 1502 | { |
1503 | struct pci_dev *pdev = container_of(dev, struct pci_dev, dev); | 1503 | struct pci_dev *pdev = to_pci_dev(dev); |
1504 | struct sdhci_pci_chip *chip; | 1504 | struct sdhci_pci_chip *chip; |
1505 | struct sdhci_pci_slot *slot; | 1505 | struct sdhci_pci_slot *slot; |
1506 | int i, ret; | 1506 | int i, ret; |