PCI: Use kobj_to_dev() instead of open-coding it
authorGeliang Tang <geliangtang@163.com>
Wed, 23 Dec 2015 12:28:13 +0000 (20:28 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 8 Jan 2016 18:07:57 +0000 (12:07 -0600)
commit554a60379aaa502def3c77ae1af69247588c020a
treeec3b92b3618e568b97218531f43e95256ba7e8e3
parentf3d2f1655b543e2e8aaeaac0e1f6250c09fe1692
PCI: Use kobj_to_dev() instead of open-coding it

Use kobj_to_dev() instead of open-coding it.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci-label.c
drivers/pci/pci-sysfs.c