iss->media_dev.link_notify = iss_pipeline_link_notify;
ret = media_device_register(&iss->media_dev);
if (ret < 0) {
- printk(KERN_ERR "%s: Media device registration failed (%d)\n",
+ dev_err(iss->dev, "%s: Media device registration failed (%d)\n",
__func__, ret);
return ret;
}
iss->v4l2_dev.mdev = &iss->media_dev;
ret = v4l2_device_register(iss->dev, &iss->v4l2_dev);
if (ret < 0) {
- printk(KERN_ERR "%s: V4L2 device registration failed (%d)\n",
+ dev_err(iss->dev, "%s: V4L2 device registration failed (%d)\n",
__func__, ret);
goto done;
}
break;
default:
- printk(KERN_ERR "%s: invalid interface type %u\n",
- __func__, subdevs->interface);
+ dev_err(iss->dev, "%s: invalid interface type %u\n",
+ __func__, subdevs->interface);
ret = -EINVAL;
goto done;
}
} while (soft_reset_retries < 5);
if (soft_reset_retries == 5) {
- printk(KERN_ERR "CSI2: Soft reset try count exceeded!\n");
+ dev_err(csi2->iss->dev,
+ "CSI2: Soft reset try count exceeded!\n");
return -EBUSY;
}
} while (--i > 0);
if (i == 0) {
- printk(KERN_ERR
- "CSI2: Reset for CSI2_96M_FCLK domain Failed!\n");
+ dev_err(csi2->iss->dev,
+ "CSI2: Reset for CSI2_96M_FCLK domain Failed!\n");
return -EBUSY;
}
} while ((reg != power >> 2) && (retry_count < 250));
if (retry_count == 250) {
- printk(KERN_ERR "CSI2 CIO set power failed!\n");
+ dev_err(phy->iss->dev, "CSI2 CIO set power failed!\n");
return -EBUSY;
}
ret = video_register_device(&video->video, VFL_TYPE_GRABBER, -1);
if (ret < 0)
- printk(KERN_ERR "%s: could not register video device (%d)\n",
+ dev_err(video->iss->dev,
+ "%s: could not register video device (%d)\n",
__func__, ret);
return ret;