[media] omap3isp: Replace printk with dev_*

Use the dev_* message logging API instead of raw printk.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Laurent Pinchart 2012-10-22 08:28:51 -03:00 committed by Mauro Carvalho Chehab
parent aab84f55d4
commit 4feca39b3d
4 changed files with 12 additions and 11 deletions

View File

@ -1679,7 +1679,7 @@ isp_register_subdev_group(struct isp_device *isp,
adapter = i2c_get_adapter(board_info->i2c_adapter_id); adapter = i2c_get_adapter(board_info->i2c_adapter_id);
if (adapter == NULL) { if (adapter == NULL) {
printk(KERN_ERR "%s: Unable to get I2C adapter %d for " dev_err(isp->dev, "%s: Unable to get I2C adapter %d for "
"device %s\n", __func__, "device %s\n", __func__,
board_info->i2c_adapter_id, board_info->i2c_adapter_id,
board_info->board_info->type); board_info->board_info->type);
@ -1689,7 +1689,7 @@ isp_register_subdev_group(struct isp_device *isp,
subdev = v4l2_i2c_new_subdev_board(&isp->v4l2_dev, adapter, subdev = v4l2_i2c_new_subdev_board(&isp->v4l2_dev, adapter,
board_info->board_info, NULL); board_info->board_info, NULL);
if (subdev == NULL) { if (subdev == NULL) {
printk(KERN_ERR "%s: Unable to register subdev %s\n", dev_err(isp->dev, "%s: Unable to register subdev %s\n",
__func__, board_info->board_info->type); __func__, board_info->board_info->type);
continue; continue;
} }
@ -1714,7 +1714,7 @@ static int isp_register_entities(struct isp_device *isp)
isp->media_dev.link_notify = isp_pipeline_link_notify; isp->media_dev.link_notify = isp_pipeline_link_notify;
ret = media_device_register(&isp->media_dev); ret = media_device_register(&isp->media_dev);
if (ret < 0) { if (ret < 0) {
printk(KERN_ERR "%s: Media device registration failed (%d)\n", dev_err(isp->dev, "%s: Media device registration failed (%d)\n",
__func__, ret); __func__, ret);
return ret; return ret;
} }
@ -1722,7 +1722,7 @@ static int isp_register_entities(struct isp_device *isp)
isp->v4l2_dev.mdev = &isp->media_dev; isp->v4l2_dev.mdev = &isp->media_dev;
ret = v4l2_device_register(isp->dev, &isp->v4l2_dev); ret = v4l2_device_register(isp->dev, &isp->v4l2_dev);
if (ret < 0) { if (ret < 0) {
printk(KERN_ERR "%s: V4L2 device registration failed (%d)\n", dev_err(isp->dev, "%s: V4L2 device registration failed (%d)\n",
__func__, ret); __func__, ret);
goto done; goto done;
} }
@ -1809,8 +1809,8 @@ static int isp_register_entities(struct isp_device *isp)
break; break;
default: default:
printk(KERN_ERR "%s: invalid interface type %u\n", dev_err(isp->dev, "%s: invalid interface type %u\n",
__func__, subdevs->interface); __func__, subdevs->interface);
ret = -EINVAL; ret = -EINVAL;
goto done; goto done;
} }

View File

@ -517,7 +517,7 @@ int omap3isp_csi2_reset(struct isp_csi2_device *csi2)
} while (soft_reset_retries < 5); } while (soft_reset_retries < 5);
if (soft_reset_retries == 5) { if (soft_reset_retries == 5) {
printk(KERN_ERR "CSI2: Soft reset try count exceeded!\n"); dev_err(isp->dev, "CSI2: Soft reset try count exceeded!\n");
return -EBUSY; return -EBUSY;
} }
@ -535,8 +535,8 @@ int omap3isp_csi2_reset(struct isp_csi2_device *csi2)
} while (--i > 0); } while (--i > 0);
if (i == 0) { if (i == 0) {
printk(KERN_ERR dev_err(isp->dev,
"CSI2: Reset for CSI2_96M_FCLK domain Failed!\n"); "CSI2: Reset for CSI2_96M_FCLK domain Failed!\n");
return -EBUSY; return -EBUSY;
} }

View File

@ -157,7 +157,7 @@ static int csiphy_set_power(struct isp_csiphy *phy, u32 power)
} while ((reg != power >> 2) && (retry_count < 100)); } while ((reg != power >> 2) && (retry_count < 100));
if (retry_count == 100) { if (retry_count == 100) {
printk(KERN_ERR "CSI2 CIO set power failed!\n"); dev_err(phy->isp->dev, "CSI2 CIO set power failed!\n");
return -EBUSY; return -EBUSY;
} }

View File

@ -1391,7 +1391,8 @@ int omap3isp_video_register(struct isp_video *video, struct v4l2_device *vdev)
ret = video_register_device(&video->video, VFL_TYPE_GRABBER, -1); ret = video_register_device(&video->video, VFL_TYPE_GRABBER, -1);
if (ret < 0) if (ret < 0)
printk(KERN_ERR "%s: could not register video device (%d)\n", dev_err(video->isp->dev,
"%s: could not register video device (%d)\n",
__func__, ret); __func__, ret);
return ret; return ret;