OSDN Git Service

media: tw5864: Disable PCI device when finished
authorKieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Fri, 22 Oct 2021 10:06:44 +0000 (11:06 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 15 Nov 2021 08:12:01 +0000 (08:12 +0000)
commit4406c813050727fce157e416851ddee389d0b135
tree193c2ec6f8527f0f4fa6034e8bd0197c385588f4
parent901181b7ff1659893f8714a7752465a9b719f19f
media: tw5864: Disable PCI device when finished

The cleanup in tw5864_finidev() neglected to disable the PCI device
after enabling it in tw5864_initdev().

Call pci_disable_device() after releasing the associated resources.

Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/pci/tw5864/tw5864-core.c