]> git.baikalelectronics.ru Git - kernel.git/commit
media: saa7134: Use video_unregister_device for radio_dev
authorTasos Sahanidis <tasos@tasossah.com>
Thu, 26 Jan 2023 11:00:59 +0000 (12:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:44 +0000 (09:33 +0100)
commit0bd4727b5f31a2e3ab6a96e4cc41acaf799a982c
tree32eabcb0cf10c6e5d965e93cd3e29cd1b612bb93
parent336d06db1d8fe0e80ea3d00fffd8849e35a6a08e
media: saa7134: Use video_unregister_device for radio_dev

[ Upstream commit 8380a3e9be3ede9a16409bb5fe51ab00158905e2 ]

The radio device doesn't use vb2, thus calling vb2_video_unregister_device()
which results in the following warning being printed on module unload.

WARNING: CPU: 1 PID: 215963 at drivers/media/common/videobuf2/videobuf2-v4l2.c:1236 vb2_video_unregister_device+0xc6/0xe0 [videobuf2_v4l2]

Fixes: e33733c0c8b3 ("media: media/pci: use vb2_video_unregister_device()")
Signed-off-by: Tasos Sahanidis <tasos@tasossah.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/pci/saa7134/saa7134-core.c