diff options
author | Geliang Tang <geliangtang@163.com> | 2016-01-08 18:05:39 (GMT) |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-01-08 18:05:39 (GMT) |
commit | f3d2f1655b543e2e8aaeaac0e1f6250c09fe1692 (patch) | |
tree | 473fb316779ab5dca43a40ce806b13bd27dad02b /drivers/pci/pci.c | |
parent | ff3ce480e8b59fbc0f459476fe1b5451464592a5 (diff) | |
download | linux-f3d2f1655b543e2e8aaeaac0e1f6250c09fe1692.tar.xz |
PCI: Use to_pci_dev() instead of open-coding it
Use to_pci_dev() instead of open-coding it.
Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r-- | drivers/pci/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index db2e227..49e3715 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -1417,7 +1417,7 @@ struct pci_devres { static void pcim_release(struct device *gendev, void *res) { - struct pci_dev *dev = container_of(gendev, struct pci_dev, dev); + struct pci_dev *dev = to_pci_dev(gendev); struct pci_devres *this = res; int i; |