Commit 20af74ef authored by Geliang Tang's avatar Geliang Tang Committed by Greg Kroah-Hartman

devres: use to_pci_dev()

Use to_pci_dev() instead of open-coding it.
Signed-off-by: default avatarGeliang Tang <geliangtang@163.com>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 445f8249
...@@ -236,7 +236,7 @@ struct pcim_iomap_devres { ...@@ -236,7 +236,7 @@ struct pcim_iomap_devres {
static void pcim_iomap_release(struct device *gendev, void *res) static void pcim_iomap_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 pcim_iomap_devres *this = res; struct pcim_iomap_devres *this = res;
int i; int i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment