Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;