static int tegra_camera_disable_emc(struct tegra_camera_dev *dev) { #ifdef CONFIG_VIDEO_OV5640 printk("%s++\n", __func__); #endif clk_disable(dev->emc_clk); return tegra_emc_enable_eack(); }
int tegra_camera_disable_emc(struct tegra_camera *camera) { dev_dbg(camera->dev, "%s++\n", __func__); clk_disable_unprepare(camera->clock[CAMERA_EMC_CLK].clk); #if defined(CONFIG_TEGRA_ISOMGR) { if (camera->iso_request) { int ret = 0; /* deallocate isomgr bw */ ret = tegra_camera_isomgr_request(camera, 0, 0); if (ret) { dev_err(camera->dev, "%s: failed to deallocate memory in isomgr\n", __func__); return -ENOMEM; } camera->iso_request = 0; } } #endif return tegra_emc_enable_eack(); }
static int tegra_camera_disable_emc(struct tegra_camera_dev *dev) { clk_disable(dev->emc_clk); return tegra_emc_enable_eack(); }