PCI: Use to_pci_dev() instead of open-coding it
authorGeliang Tang <geliangtang@163.com>
Fri, 8 Jan 2016 18:05:39 +0000 (12:05 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 8 Jan 2016 18:05:39 +0000 (12:05 -0600)
commitf3d2f1655b543e2e8aaeaac0e1f6250c09fe1692
tree473fb316779ab5dca43a40ce806b13bd27dad02b
parentff3ce480e8b59fbc0f459476fe1b5451464592a5
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>
drivers/pci/hotplug/shpchp_sysfs.c
drivers/pci/pci.c