V4L/DVB (8778): radio: fix incorrect video_register_device result check

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Hans Verkuil
2008-09-03 17:11:58 -03:00
committed by Mauro Carvalho Chehab
parent 6c9de52884
commit cba99ae819
14 changed files with 15 additions and 23 deletions

View File

@@ -377,7 +377,7 @@ static int __init fmi_init(void)
mutex_init(&lock);
if (video_register_device(&fmi_radio, VFL_TYPE_RADIO, radio_nr) == -1) {
if (video_register_device(&fmi_radio, VFL_TYPE_RADIO, radio_nr) < 0) {
release_region(io, 2);
return -EINVAL;
}