Beispiel #1
0
static int tegra_camera_suspend(struct platform_device *pdev, pm_message_t state)
{
    struct tegra_camera_dev *dev = platform_get_drvdata(pdev);
    int ret = 0;

    if (tegra_camera_enabled(dev)) {
        ret = -EBUSY;
        dev_err(&pdev->dev,
                "tegra_camera cannot suspend, "
                "application is holding on to camera. \n");
    }

    return ret;
}
Beispiel #2
0
static int tegra_camera_suspend(struct platform_device *pdev, pm_message_t state)
{
	struct tegra_camera_dev *dev = platform_get_drvdata(pdev);
	int ret = 0;

	if (tegra_camera_enabled(dev)) {
		ret = -EBUSY;
		dev_err(&pdev->dev,
		"tegra_camera cannot suspend, "
		"application is holding on to camera. \n");
	}
	if(tegra3_get_project_id() != TEGRA3_PROJECT_TF201)
		tegra_pinmux_set_tristate(TEGRA_PINGROUP_CAM_MCLK, TEGRA_TRI_NORMAL);
	return ret;
}