V4L/DVB (8778): radio: fix incorrect video_register_device result check
[linux-2.6.git] / drivers / media / radio / dsbr100.c
index 08bf5e8..70c65a7 100644 (file)
@@ -462,9 +462,7 @@ static const struct v4l2_ioctl_ops usb_dsbr100_ioctl_ops = {
 
 /* V4L2 interface */
 static struct video_device dsbr100_videodev_template = {
-       .owner          = THIS_MODULE,
        .name           = "D-Link DSB-R 100",
-       .type           = VID_TYPE_TUNER,
        .fops           = &usb_dsbr100_fops,
        .ioctl_ops      = &usb_dsbr100_ioctl_ops,
        .release        = video_device_release,
@@ -495,7 +493,7 @@ static int usb_dsbr100_probe(struct usb_interface *intf,
        radio->usbdev = interface_to_usbdev(intf);
        radio->curfreq = FREQ_MIN*FREQ_MUL;
        video_set_drvdata(radio->videodev, radio);
-       if (video_register_device(radio->videodev, VFL_TYPE_RADIO,radio_nr)) {
+       if (video_register_device(radio->videodev, VFL_TYPE_RADIO, radio_nr) < 0) {
                warn("Could not register video device");
                video_device_release(radio->videodev);
                kfree(radio->transfer_buffer);