Skip to content

Commit

Permalink
devres: use to_pci_dev()
Browse files Browse the repository at this point in the history
Use to_pci_dev() instead of open-coding it.

Signed-off-by: Geliang Tang <[email protected]>
Acked-by: Tejun Heo <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
geliangtang authored and gregkh committed Feb 8, 2016
1 parent 445f824 commit 20af74e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/devres.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ struct pcim_iomap_devres {

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;
int i;

Expand Down

0 comments on commit 20af74e

Please sign in to comment.