mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
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
1 changed files with 1 additions and 2 deletions
|
|
@ -778,8 +778,7 @@ out:
|
|||
|
||||
static int __maybe_unused imgu_resume(struct device *dev)
|
||||
{
|
||||
struct pci_dev *pci_dev = to_pci_dev(dev);
|
||||
struct imgu_device *imgu = pci_get_drvdata(pci_dev);
|
||||
struct imgu_device *imgu = dev_get_drvdata(dev);
|
||||
int r = 0;
|
||||
unsigned int pipe;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue