Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142465
b: refs/heads/master
c: 81d1d09
h: refs/heads/master
i:
  142463: 5d4c2f2
v: v3
  • Loading branch information
Alexey Klimov authored and Mauro Carvalho Chehab committed Apr 7, 2009
1 parent 072a1bb commit 7694817
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: b7732a32af3335454fd274d1b09375416336b5b1
refs/heads/master: 81d1d09f926394c19a19ceeb139462908ac63a01
9 changes: 5 additions & 4 deletions trunk/drivers/media/radio/radio-si470x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1686,15 +1686,15 @@ static int si470x_usb_driver_probe(struct usb_interface *intf,
/* show some infos about the specific si470x device */
if (si470x_get_all_registers(radio) < 0) {
retval = -EIO;
goto err_all;
goto err_video;
}
printk(KERN_INFO DRIVER_NAME ": DeviceID=0x%4.4hx ChipID=0x%4.4hx\n",
radio->registers[DEVICEID], radio->registers[CHIPID]);

/* get software and hardware versions */
if (si470x_get_scratch_page_versions(radio) < 0) {
retval = -EIO;
goto err_all;
goto err_video;
}
printk(KERN_INFO DRIVER_NAME
": software version %d, hardware version %d\n",
Expand Down Expand Up @@ -1727,7 +1727,7 @@ static int si470x_usb_driver_probe(struct usb_interface *intf,
radio->buffer = kmalloc(radio->buf_size, GFP_KERNEL);
if (!radio->buffer) {
retval = -EIO;
goto err_all;
goto err_video;
}

/* rds buffer configuration */
Expand All @@ -1749,8 +1749,9 @@ static int si470x_usb_driver_probe(struct usb_interface *intf,

return 0;
err_all:
video_device_release(radio->videodev);
kfree(radio->buffer);
err_video:
video_device_release(radio->videodev);
err_radio:
kfree(radio);
err_initial:
Expand Down

0 comments on commit 7694817

Please sign in to comment.