Commit 7d462fe5 authored by Sylwester Nawrocki's avatar Sylwester Nawrocki Committed by Mauro Carvalho Chehab

[media] staging: as102: Replace printk(KERN_<LEVEL> witk pr_<level>

While at it also correct some spelling errors.

Cc: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: default avatarSylwester Nawrocki <snjw23@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 14e0e4bf
...@@ -58,7 +58,7 @@ static int parse_hex_line(unsigned char *fw_data, unsigned char *addr, ...@@ -58,7 +58,7 @@ static int parse_hex_line(unsigned char *fw_data, unsigned char *addr,
unsigned char *src, dst; unsigned char *src, dst;
if (*fw_data++ != ':') { if (*fw_data++ != ':') {
printk(KERN_ERR "invalid firmware file\n"); pr_err("invalid firmware file\n");
return -EFAULT; return -EFAULT;
} }
...@@ -191,21 +191,21 @@ int as102_fw_upload(struct as102_bus_adapter_t *bus_adap) ...@@ -191,21 +191,21 @@ int as102_fw_upload(struct as102_bus_adapter_t *bus_adap)
/* request kernel to locate firmware file: part1 */ /* request kernel to locate firmware file: part1 */
errno = request_firmware(&firmware, fw1, &dev->dev); errno = request_firmware(&firmware, fw1, &dev->dev);
if (errno < 0) { if (errno < 0) {
printk(KERN_ERR "%s: unable to locate firmware file: %s\n", pr_err("%s: unable to locate firmware file: %s\n",
DRIVER_NAME, fw1); DRIVER_NAME, fw1);
goto error; goto error;
} }
/* initiate firmware upload */ /* initiate firmware upload */
errno = as102_firmware_upload(bus_adap, cmd_buf, firmware); errno = as102_firmware_upload(bus_adap, cmd_buf, firmware);
if (errno < 0) { if (errno < 0) {
printk(KERN_ERR "%s: error during firmware upload part1\n", pr_err("%s: error during firmware upload part1\n",
DRIVER_NAME); DRIVER_NAME);
goto error; goto error;
} }
printk(KERN_INFO "%s: fimrware: %s loaded with success\n", pr_info("%s: firmware: %s loaded with success\n",
DRIVER_NAME, fw1); DRIVER_NAME, fw1);
release_firmware(firmware); release_firmware(firmware);
/* wait for boot to complete */ /* wait for boot to complete */
...@@ -214,21 +214,21 @@ int as102_fw_upload(struct as102_bus_adapter_t *bus_adap) ...@@ -214,21 +214,21 @@ int as102_fw_upload(struct as102_bus_adapter_t *bus_adap)
/* request kernel to locate firmware file: part2 */ /* request kernel to locate firmware file: part2 */
errno = request_firmware(&firmware, fw2, &dev->dev); errno = request_firmware(&firmware, fw2, &dev->dev);
if (errno < 0) { if (errno < 0) {
printk(KERN_ERR "%s: unable to locate firmware file: %s\n", pr_err("%s: unable to locate firmware file: %s\n",
DRIVER_NAME, fw2); DRIVER_NAME, fw2);
goto error; goto error;
} }
/* initiate firmware upload */ /* initiate firmware upload */
errno = as102_firmware_upload(bus_adap, cmd_buf, firmware); errno = as102_firmware_upload(bus_adap, cmd_buf, firmware);
if (errno < 0) { if (errno < 0) {
printk(KERN_ERR "%s: error during firmware upload part2\n", pr_err("%s: error during firmware upload part2\n",
DRIVER_NAME); DRIVER_NAME);
goto error; goto error;
} }
printk(KERN_INFO "%s: fimrware: %s loaded with success\n", pr_info("%s: firmware: %s loaded with success\n",
DRIVER_NAME, fw2); DRIVER_NAME, fw2);
error: error:
/* free data buffer */ /* free data buffer */
kfree(cmd_buf); kfree(cmd_buf);
......
...@@ -337,7 +337,7 @@ static void as102_usb_disconnect(struct usb_interface *intf) ...@@ -337,7 +337,7 @@ static void as102_usb_disconnect(struct usb_interface *intf)
/* decrement usage counter */ /* decrement usage counter */
kref_put(&as102_dev->kref, as102_usb_release); 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(); LEAVE();
} }
...@@ -360,7 +360,7 @@ static int as102_usb_probe(struct usb_interface *intf, ...@@ -360,7 +360,7 @@ static int as102_usb_probe(struct usb_interface *intf,
/* This should never actually happen */ /* This should never actually happen */
if ((sizeof(as102_usb_id_table) / sizeof(struct usb_device_id)) != if ((sizeof(as102_usb_id_table) / sizeof(struct usb_device_id)) !=
(sizeof(as102_device_names) / sizeof(const char *))) { (sizeof(as102_device_names) / sizeof(const char *))) {
printk(KERN_ERR "Device names table invalid size"); pr_err("Device names table invalid size");
return -EINVAL; return -EINVAL;
} }
...@@ -399,7 +399,7 @@ static int as102_usb_probe(struct usb_interface *intf, ...@@ -399,7 +399,7 @@ static int as102_usb_probe(struct usb_interface *intf,
goto failed; 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 */ /* request buffer allocation for streaming */
ret = as102_alloc_usb_stream_buffer(as102_dev); ret = as102_alloc_usb_stream_buffer(as102_dev);
...@@ -432,8 +432,8 @@ static int as102_open(struct inode *inode, struct file *file) ...@@ -432,8 +432,8 @@ static int as102_open(struct inode *inode, struct file *file)
/* fetch device from usb interface */ /* fetch device from usb interface */
intf = usb_find_interface(&as102_usb_driver, minor); intf = usb_find_interface(&as102_usb_driver, minor);
if (intf == NULL) { if (intf == NULL) {
printk(KERN_ERR "%s: can't find device for minor %d\n", pr_err("%s: can't find device for minor %d\n",
__func__, minor); __func__, minor);
ret = -ENODEV; ret = -ENODEV;
goto exit; goto exit;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment