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:
parent
3be9cc6ad3
commit
6ddb094a9f
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue