media: bttv: start_streaming should return a proper error code
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 30 Nov 2023 12:58:10 +0000 (13:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jan 2024 23:35:34 +0000 (15:35 -0800)
commite8fa30fa7157f0b97a6aff84518c00558624a618
treeae5c1819c7dfd76446bca33d633593aff84ab369
parent5e00f6c3a350d6428138bf06b76adb7ead0dc991
media: bttv: start_streaming should return a proper error code

[ Upstream commit 0d75bb6ae127f5e3fd0e2239714908fd2038193d ]

The start_streaming callback returned 0 or 1 instead of a
proper error code. Fix that.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Fixes: b7ec3212a73a ("media: bttv: convert to vb2")
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/pci/bt8xx/bttv-driver.c
drivers/media/pci/bt8xx/bttv-vbi.c