/* Power-up and configure camera sensor. It's ready for capturing now.  */
static int omap24xxcam_sensor_enable(struct omap24xxcam_device *cam)
/* Power-up and configure camera sensor. It's ready for capturing now.  */
static int omap24xxcam_sensor_enable(struct omap24xxcam_device *cam)
{
	int rval;
	omap24xxcam_clock_on(cam);
	omap24xxcam_sensor_if_enable(cam);
	rval = vidioc_int_s_power(cam->sdev, 1);
	if (rval)
		goto out;
	rval = vidioc_int_init(cam->sdev);
	if (rval)
		goto out;
	return 0;
out:
	omap24xxcam_sensor_disable(cam);
	return rval;
}