devres: use to_pci_dev()
authorGeliang Tang <geliangtang@163.com>
Sun, 27 Dec 2015 10:46:05 +0000 (18:46 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 07:17:59 +0000 (23:17 -0800)
commit20af74ef140f0fbc477f90817c58241107782e10
treeefef8b08982891c814a72fce69e80d1dbc61dcd0
parent445f82492f2256b9a7c09292b458e152e7fae7f1
devres: use to_pci_dev()

Use to_pci_dev() instead of open-coding it.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
lib/devres.c