diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2008-01-07 05:24:51 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 19:04:41 -0200 |
commit | 98512f7b36ec412ea0461e9aab8f16c882df055d (patch) | |
tree | a4b734f0ff9e5a8e28e222b333ccca79f7518454 /drivers | |
parent | 1434bc0cbb842ed71eada244ac46185e3b17e4e2 (diff) | |
download | kernel_samsung_smdk4412-98512f7b36ec412ea0461e9aab8f16c882df055d.zip kernel_samsung_smdk4412-98512f7b36ec412ea0461e9aab8f16c882df055d.tar.gz kernel_samsung_smdk4412-98512f7b36ec412ea0461e9aab8f16c882df055d.tar.bz2 |
V4L/DVB (6976): drivers/media/radio/radio-sf16fmr2.c: fix error handling
video_register_device() returns -EFOO on errr, not -1.
Addresses http://bugzilla.kernel.org/show_bug.cgi?id=9699
Reported-By: <devzero@web.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/radio/radio-sf16fmr2.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/radio/radio-sf16fmr2.c b/drivers/media/radio/radio-sf16fmr2.c index c432c44..f7c8b00 100644 --- a/drivers/media/radio/radio-sf16fmr2.c +++ b/drivers/media/radio/radio-sf16fmr2.c @@ -476,8 +476,7 @@ static int __init fmr2_init(void) return -EBUSY; } - if(video_register_device(&fmr2_radio, VFL_TYPE_RADIO, radio_nr)==-1) - { + if (video_register_device(&fmr2_radio, VFL_TYPE_RADIO, radio_nr) < 0) { release_region(io, 2); return -EINVAL; } |