Skip to content

Commit 4e26f69

Browse files
Sakari Ailusmchehab
authored andcommitted
media: ipu3-cio2: Use cio2_queues_exit
The ipu3-cio2 driver has a function to tear down video devices as well as the associated video buffer queues. Use it. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Tested-by: Bingbu Cao <bingbu.cao@intel.com> Reviewed-by: Bingbu Cao <bingbu.cao@intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
1 parent 32388d6 commit 4e26f69

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/media/pci/intel/ipu3/ipu3-cio2.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1844,12 +1844,10 @@ static int cio2_pci_probe(struct pci_dev *pci_dev,
18441844
static void cio2_pci_remove(struct pci_dev *pci_dev)
18451845
{
18461846
struct cio2_device *cio2 = pci_get_drvdata(pci_dev);
1847-
unsigned int i;
18481847

18491848
media_device_unregister(&cio2->media_dev);
18501849
cio2_notifier_exit(cio2);
1851-
for (i = 0; i < CIO2_QUEUES; i++)
1852-
cio2_queue_exit(cio2, &cio2->queue[i]);
1850+
cio2_queues_exit(cio2);
18531851
cio2_fbpt_exit_dummy(cio2);
18541852
v4l2_device_unregister(&cio2->v4l2_dev);
18551853
media_device_cleanup(&cio2->media_dev);

0 commit comments

Comments
 (0)