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)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Wed, 8 Feb 2023 08:03:40 +0000 (09:03 +0100)
commitbc7635c6435c77a0c168e2cc6535740adfaff4e4
tree8008e9ca645de2e582dcfec0e4549f3ce8b9b521
parent7a46e2b923939b03735720616743a70fe6917c2d
media: saa7134: Use video_unregister_device for radio_dev

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: 11788d9b7e91 ("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>
drivers/media/pci/saa7134/saa7134-core.c