media: staging/intel-ipu3: Use dev_get_drvdata where possible

Instead of using to_pci_dev + pci_get_drvdata,
use dev_get_drvdata to make code simpler.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
Chuhong Yuan 2019-07-24 08:22:19 -04:00 committed by Mauro Carvalho Chehab
parent 3be9cc6ad3
commit 6ddb094a9f
1 changed files with 1 additions and 2 deletions

View File

@ -778,8 +778,7 @@ out:
static int __maybe_unused imgu_resume(struct device *dev) static int __maybe_unused imgu_resume(struct device *dev)
{ {
struct pci_dev *pci_dev = to_pci_dev(dev); struct imgu_device *imgu = dev_get_drvdata(dev);
struct imgu_device *imgu = pci_get_drvdata(pci_dev);
int r = 0; int r = 0;
unsigned int pipe; unsigned int pipe;