Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285194
b: refs/heads/master
c: 7d462fe
h: refs/heads/master
v: v3
  • Loading branch information
Sylwester Nawrocki authored and Mauro Carvalho Chehab committed Nov 8, 2011
1 parent 9926f10 commit 1d0cbf8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 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: 14e0e4bf6c8c98ef36542280b3147b4e79e7131b
refs/heads/master: 7d462fe580d6b73f0307588b898b2e6c8ad45d41
26 changes: 13 additions & 13 deletions trunk/drivers/staging/media/as102/as102_fw.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static int parse_hex_line(unsigned char *fw_data, unsigned char *addr,
unsigned char *src, dst;

if (*fw_data++ != ':') {
printk(KERN_ERR "invalid firmware file\n");
pr_err("invalid firmware file\n");
return -EFAULT;
}

Expand Down Expand Up @@ -191,21 +191,21 @@ int as102_fw_upload(struct as102_bus_adapter_t *bus_adap)
/* request kernel to locate firmware file: part1 */
errno = request_firmware(&firmware, fw1, &dev->dev);
if (errno < 0) {
printk(KERN_ERR "%s: unable to locate firmware file: %s\n",
DRIVER_NAME, fw1);
pr_err("%s: unable to locate firmware file: %s\n",
DRIVER_NAME, fw1);
goto error;
}

/* initiate firmware upload */
errno = as102_firmware_upload(bus_adap, cmd_buf, firmware);
if (errno < 0) {
printk(KERN_ERR "%s: error during firmware upload part1\n",
DRIVER_NAME);
pr_err("%s: error during firmware upload part1\n",
DRIVER_NAME);
goto error;
}

printk(KERN_INFO "%s: fimrware: %s loaded with success\n",
DRIVER_NAME, fw1);
pr_info("%s: firmware: %s loaded with success\n",
DRIVER_NAME, fw1);
release_firmware(firmware);

/* wait for boot to complete */
Expand All @@ -214,21 +214,21 @@ int as102_fw_upload(struct as102_bus_adapter_t *bus_adap)
/* request kernel to locate firmware file: part2 */
errno = request_firmware(&firmware, fw2, &dev->dev);
if (errno < 0) {
printk(KERN_ERR "%s: unable to locate firmware file: %s\n",
DRIVER_NAME, fw2);
pr_err("%s: unable to locate firmware file: %s\n",
DRIVER_NAME, fw2);
goto error;
}

/* initiate firmware upload */
errno = as102_firmware_upload(bus_adap, cmd_buf, firmware);
if (errno < 0) {
printk(KERN_ERR "%s: error during firmware upload part2\n",
DRIVER_NAME);
pr_err("%s: error during firmware upload part2\n",
DRIVER_NAME);
goto error;
}

printk(KERN_INFO "%s: fimrware: %s loaded with success\n",
DRIVER_NAME, fw2);
pr_info("%s: firmware: %s loaded with success\n",
DRIVER_NAME, fw2);
error:
/* free data buffer */
kfree(cmd_buf);
Expand Down
10 changes: 5 additions & 5 deletions trunk/drivers/staging/media/as102/as102_usb_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ static void as102_usb_disconnect(struct usb_interface *intf)
/* decrement usage counter */
kref_put(&as102_dev->kref, as102_usb_release);

printk(KERN_INFO "%s: device has been disconnected\n", DRIVER_NAME);
pr_info("%s: device has been disconnected\n", DRIVER_NAME);

LEAVE();
}
Expand All @@ -360,7 +360,7 @@ static int as102_usb_probe(struct usb_interface *intf,
/* This should never actually happen */
if ((sizeof(as102_usb_id_table) / sizeof(struct usb_device_id)) !=
(sizeof(as102_device_names) / sizeof(const char *))) {
printk(KERN_ERR "Device names table invalid size");
pr_err("Device names table invalid size");
return -EINVAL;
}

Expand Down Expand Up @@ -399,7 +399,7 @@ static int as102_usb_probe(struct usb_interface *intf,
goto failed;
}

printk(KERN_INFO "%s: device has been detected\n", DRIVER_NAME);
pr_info("%s: device has been detected\n", DRIVER_NAME);

/* request buffer allocation for streaming */
ret = as102_alloc_usb_stream_buffer(as102_dev);
Expand Down Expand Up @@ -432,8 +432,8 @@ static int as102_open(struct inode *inode, struct file *file)
/* fetch device from usb interface */
intf = usb_find_interface(&as102_usb_driver, minor);
if (intf == NULL) {
printk(KERN_ERR "%s: can't find device for minor %d\n",
__func__, minor);
pr_err("%s: can't find device for minor %d\n",
__func__, minor);
ret = -ENODEV;
goto exit;
}
Expand Down

0 comments on commit 1d0cbf8

Please sign in to comment.