diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-09-03 17:11:58 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-09-03 18:37:16 -0300 |
commit | cba99ae81901fe61ac4b0d65c697474af29dc4ea (patch) | |
tree | 5dd22d5a4d02d92fe92bacd95e7e40b7149dfa8d /drivers/media/radio/radio-maxiradio.c | |
parent | 6c9de52884aeafb05a935467c3a2c05a2d445ab7 (diff) | |
download | blackbird-op-linux-cba99ae81901fe61ac4b0d65c697474af29dc4ea.tar.gz blackbird-op-linux-cba99ae81901fe61ac4b0d65c697474af29dc4ea.zip |
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>
Diffstat (limited to 'drivers/media/radio/radio-maxiradio.c')
-rw-r--r-- | drivers/media/radio/radio-maxiradio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/radio/radio-maxiradio.c b/drivers/media/radio/radio-maxiradio.c index e210da161566..0cc6fcb041fd 100644 --- a/drivers/media/radio/radio-maxiradio.c +++ b/drivers/media/radio/radio-maxiradio.c @@ -410,7 +410,7 @@ static int __devinit maxiradio_init_one(struct pci_dev *pdev, const struct pci_d mutex_init(&radio_unit.lock); maxiradio_radio.priv = &radio_unit; - if (video_register_device(&maxiradio_radio, VFL_TYPE_RADIO, radio_nr)==-1) { + if (video_register_device(&maxiradio_radio, VFL_TYPE_RADIO, radio_nr) < 0) { printk("radio-maxiradio: can't register device!"); goto err_out_free_region; } |