diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-10-22 07:28:51 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-11-28 07:50:53 -0500 |
commit | 4feca39b3d9a7480b5e622a0b4a29941c85cdcd2 (patch) | |
tree | aa4b04e5e29eb525c5218e940edd38129c7c3424 /drivers/media | |
parent | aab84f55d45ff6838e708f0cb8e1c0166d339ef6 (diff) |
[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>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/platform/omap3isp/isp.c | 12 | ||||
-rw-r--r-- | drivers/media/platform/omap3isp/ispcsi2.c | 6 | ||||
-rw-r--r-- | drivers/media/platform/omap3isp/ispcsiphy.c | 2 | ||||
-rw-r--r-- | drivers/media/platform/omap3isp/ispvideo.c | 3 |
4 files changed, 12 insertions, 11 deletions
diff --git a/drivers/media/platform/omap3isp/isp.c b/drivers/media/platform/omap3isp/isp.c index cb9bc3436135..e8e724e2b4b1 100644 --- a/drivers/media/platform/omap3isp/isp.c +++ b/drivers/media/platform/omap3isp/isp.c | |||
@@ -1679,7 +1679,7 @@ isp_register_subdev_group(struct isp_device *isp, | |||
1679 | 1679 | ||
1680 | adapter = i2c_get_adapter(board_info->i2c_adapter_id); | 1680 | adapter = i2c_get_adapter(board_info->i2c_adapter_id); |
1681 | if (adapter == NULL) { | 1681 | if (adapter == NULL) { |
1682 | printk(KERN_ERR "%s: Unable to get I2C adapter %d for " | 1682 | dev_err(isp->dev, "%s: Unable to get I2C adapter %d for " |
1683 | "device %s\n", __func__, | 1683 | "device %s\n", __func__, |
1684 | board_info->i2c_adapter_id, | 1684 | board_info->i2c_adapter_id, |
1685 | board_info->board_info->type); | 1685 | board_info->board_info->type); |
@@ -1689,7 +1689,7 @@ isp_register_subdev_group(struct isp_device *isp, | |||
1689 | subdev = v4l2_i2c_new_subdev_board(&isp->v4l2_dev, adapter, | 1689 | subdev = v4l2_i2c_new_subdev_board(&isp->v4l2_dev, adapter, |
1690 | board_info->board_info, NULL); | 1690 | board_info->board_info, NULL); |
1691 | if (subdev == NULL) { | 1691 | if (subdev == NULL) { |
1692 | printk(KERN_ERR "%s: Unable to register subdev %s\n", | 1692 | dev_err(isp->dev, "%s: Unable to register subdev %s\n", |
1693 | __func__, board_info->board_info->type); | 1693 | __func__, board_info->board_info->type); |
1694 | continue; | 1694 | continue; |
1695 | } | 1695 | } |
@@ -1714,7 +1714,7 @@ static int isp_register_entities(struct isp_device *isp) | |||
1714 | isp->media_dev.link_notify = isp_pipeline_link_notify; | 1714 | isp->media_dev.link_notify = isp_pipeline_link_notify; |
1715 | ret = media_device_register(&isp->media_dev); | 1715 | ret = media_device_register(&isp->media_dev); |
1716 | if (ret < 0) { | 1716 | if (ret < 0) { |
1717 | printk(KERN_ERR "%s: Media device registration failed (%d)\n", | 1717 | dev_err(isp->dev, "%s: Media device registration failed (%d)\n", |
1718 | __func__, ret); | 1718 | __func__, ret); |
1719 | return ret; | 1719 | return ret; |
1720 | } | 1720 | } |
@@ -1722,7 +1722,7 @@ static int isp_register_entities(struct isp_device *isp) | |||
1722 | isp->v4l2_dev.mdev = &isp->media_dev; | 1722 | isp->v4l2_dev.mdev = &isp->media_dev; |
1723 | ret = v4l2_device_register(isp->dev, &isp->v4l2_dev); | 1723 | ret = v4l2_device_register(isp->dev, &isp->v4l2_dev); |
1724 | if (ret < 0) { | 1724 | if (ret < 0) { |
1725 | printk(KERN_ERR "%s: V4L2 device registration failed (%d)\n", | 1725 | dev_err(isp->dev, "%s: V4L2 device registration failed (%d)\n", |
1726 | __func__, ret); | 1726 | __func__, ret); |
1727 | goto done; | 1727 | goto done; |
1728 | } | 1728 | } |
@@ -1809,8 +1809,8 @@ static int isp_register_entities(struct isp_device *isp) | |||
1809 | break; | 1809 | break; |
1810 | 1810 | ||
1811 | default: | 1811 | default: |
1812 | printk(KERN_ERR "%s: invalid interface type %u\n", | 1812 | dev_err(isp->dev, "%s: invalid interface type %u\n", |
1813 | __func__, subdevs->interface); | 1813 | __func__, subdevs->interface); |
1814 | ret = -EINVAL; | 1814 | ret = -EINVAL; |
1815 | goto done; | 1815 | goto done; |
1816 | } | 1816 | } |
diff --git a/drivers/media/platform/omap3isp/ispcsi2.c b/drivers/media/platform/omap3isp/ispcsi2.c index 6a3ff792af7d..783f4b05b153 100644 --- a/drivers/media/platform/omap3isp/ispcsi2.c +++ b/drivers/media/platform/omap3isp/ispcsi2.c | |||
@@ -517,7 +517,7 @@ int omap3isp_csi2_reset(struct isp_csi2_device *csi2) | |||
517 | } while (soft_reset_retries < 5); | 517 | } while (soft_reset_retries < 5); |
518 | 518 | ||
519 | if (soft_reset_retries == 5) { | 519 | if (soft_reset_retries == 5) { |
520 | printk(KERN_ERR "CSI2: Soft reset try count exceeded!\n"); | 520 | dev_err(isp->dev, "CSI2: Soft reset try count exceeded!\n"); |
521 | return -EBUSY; | 521 | return -EBUSY; |
522 | } | 522 | } |
523 | 523 | ||
@@ -535,8 +535,8 @@ int omap3isp_csi2_reset(struct isp_csi2_device *csi2) | |||
535 | } while (--i > 0); | 535 | } while (--i > 0); |
536 | 536 | ||
537 | if (i == 0) { | 537 | if (i == 0) { |
538 | printk(KERN_ERR | 538 | dev_err(isp->dev, |
539 | "CSI2: Reset for CSI2_96M_FCLK domain Failed!\n"); | 539 | "CSI2: Reset for CSI2_96M_FCLK domain Failed!\n"); |
540 | return -EBUSY; | 540 | return -EBUSY; |
541 | } | 541 | } |
542 | 542 | ||
diff --git a/drivers/media/platform/omap3isp/ispcsiphy.c b/drivers/media/platform/omap3isp/ispcsiphy.c index d6eb4f9655fe..3d56b33f85e8 100644 --- a/drivers/media/platform/omap3isp/ispcsiphy.c +++ b/drivers/media/platform/omap3isp/ispcsiphy.c | |||
@@ -157,7 +157,7 @@ static int csiphy_set_power(struct isp_csiphy *phy, u32 power) | |||
157 | } while ((reg != power >> 2) && (retry_count < 100)); | 157 | } while ((reg != power >> 2) && (retry_count < 100)); |
158 | 158 | ||
159 | if (retry_count == 100) { | 159 | if (retry_count == 100) { |
160 | printk(KERN_ERR "CSI2 CIO set power failed!\n"); | 160 | dev_err(phy->isp->dev, "CSI2 CIO set power failed!\n"); |
161 | return -EBUSY; | 161 | return -EBUSY; |
162 | } | 162 | } |
163 | 163 | ||
diff --git a/drivers/media/platform/omap3isp/ispvideo.c b/drivers/media/platform/omap3isp/ispvideo.c index 75cd309035f9..8759247cb243 100644 --- a/drivers/media/platform/omap3isp/ispvideo.c +++ b/drivers/media/platform/omap3isp/ispvideo.c | |||
@@ -1391,7 +1391,8 @@ int omap3isp_video_register(struct isp_video *video, struct v4l2_device *vdev) | |||
1391 | 1391 | ||
1392 | ret = video_register_device(&video->video, VFL_TYPE_GRABBER, -1); | 1392 | ret = video_register_device(&video->video, VFL_TYPE_GRABBER, -1); |
1393 | if (ret < 0) | 1393 | if (ret < 0) |
1394 | printk(KERN_ERR "%s: could not register video device (%d)\n", | 1394 | dev_err(video->isp->dev, |
1395 | "%s: could not register video device (%d)\n", | ||
1395 | __func__, ret); | 1396 | __func__, ret); |
1396 | 1397 | ||
1397 | return ret; | 1398 | return ret; |