Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173887
b: refs/heads/master
c: d1939e4
h: refs/heads/master
i:
  173885: b392ea1
  173883: 92325e5
  173879: b89d07b
  173871: e7420bb
  173855: fd0b4c8
  173823: 1b9ddb2
v: v3
  • Loading branch information
David Ellingsworth authored and Mauro Carvalho Chehab committed Dec 5, 2009
1 parent 498cb4d commit 07811ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1b8bbb3c0a719f3baac22ea4a7eb1d636383ba3b
refs/heads/master: d1939e4c5f053e34dd432b448e221f55586a68ec
10 changes: 4 additions & 6 deletions trunk/drivers/media/radio/radio-mr800.c
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,6 @@ static int usb_amradio_probe(struct usb_interface *intf,
const struct usb_device_id *id)
{
struct amradio_device *radio;
struct v4l2_device *v4l2_dev;
int retval = 0;

radio = kzalloc(sizeof(struct amradio_device), GFP_KERNEL);
Expand All @@ -707,16 +706,15 @@ static int usb_amradio_probe(struct usb_interface *intf,
goto err_nobuf;
}

v4l2_dev = &radio->v4l2_dev;
retval = v4l2_device_register(&intf->dev, v4l2_dev);
retval = v4l2_device_register(&intf->dev, &radio->v4l2_dev);
if (retval < 0) {
dev_err(&intf->dev, "couldn't register v4l2_device\n");
goto err_v4l2;
}

strlcpy(radio->videodev.name, v4l2_dev->name,
strlcpy(radio->videodev.name, radio->v4l2_dev.name,
sizeof(radio->videodev.name));
radio->videodev.v4l2_dev = v4l2_dev;
radio->videodev.v4l2_dev = &radio->v4l2_dev;
radio->videodev.fops = &usb_amradio_fops;
radio->videodev.ioctl_ops = &usb_amradio_ioctl_ops;
radio->videodev.release = usb_amradio_video_device_release;
Expand All @@ -742,7 +740,7 @@ static int usb_amradio_probe(struct usb_interface *intf,
return 0;

err_vdev:
v4l2_device_unregister(v4l2_dev);
v4l2_device_unregister(&radio->v4l2_dev);
err_v4l2:
kfree(radio->buffer);
err_nobuf:
Expand Down

0 comments on commit 07811ff

Please sign in to comment.