dc.c (01990be33389d59f6b5c7dce0e8580263df1aa0c) dc.c (2aed4f5ab04af922a7cf1b616701845c9ed2473f)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2012 Avionic Design GmbH
4 * Copyright (C) 2012 NVIDIA CORPORATION. All rights reserved.
5 */
6
7#include <linux/clk.h>
8#include <linux/debugfs.h>

--- 2127 unchanged lines hidden (view full) ---

2136cleanup:
2137 if (!IS_ERR_OR_NULL(cursor))
2138 drm_plane_cleanup(cursor);
2139
2140 if (!IS_ERR(primary))
2141 drm_plane_cleanup(primary);
2142
2143 host1x_client_iommu_detach(client);
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2012 Avionic Design GmbH
4 * Copyright (C) 2012 NVIDIA CORPORATION. All rights reserved.
5 */
6
7#include <linux/clk.h>
8#include <linux/debugfs.h>

--- 2127 unchanged lines hidden (view full) ---

2136cleanup:
2137 if (!IS_ERR_OR_NULL(cursor))
2138 drm_plane_cleanup(cursor);
2139
2140 if (!IS_ERR(primary))
2141 drm_plane_cleanup(primary);
2142
2143 host1x_client_iommu_detach(client);
2144 host1x_syncpt_free(dc->syncpt);
2144 host1x_syncpt_put(dc->syncpt);
2145
2146 return err;
2147}
2148
2149static int tegra_dc_exit(struct host1x_client *client)
2150{
2151 struct tegra_dc *dc = host1x_client_to_dc(client);
2152 int err;

--- 8 unchanged lines hidden (view full) ---

2161
2162 err = tegra_dc_rgb_exit(dc);
2163 if (err) {
2164 dev_err(dc->dev, "failed to shutdown RGB output: %d\n", err);
2165 return err;
2166 }
2167
2168 host1x_client_iommu_detach(client);
2145
2146 return err;
2147}
2148
2149static int tegra_dc_exit(struct host1x_client *client)
2150{
2151 struct tegra_dc *dc = host1x_client_to_dc(client);
2152 int err;

--- 8 unchanged lines hidden (view full) ---

2161
2162 err = tegra_dc_rgb_exit(dc);
2163 if (err) {
2164 dev_err(dc->dev, "failed to shutdown RGB output: %d\n", err);
2165 return err;
2166 }
2167
2168 host1x_client_iommu_detach(client);
2169 host1x_syncpt_free(dc->syncpt);
2169 host1x_syncpt_put(dc->syncpt);
2170
2171 return 0;
2172}
2173
2174static int tegra_dc_runtime_suspend(struct host1x_client *client)
2175{
2176 struct tegra_dc *dc = host1x_client_to_dc(client);
2177 struct device *dev = client->dev;

--- 487 unchanged lines hidden ---
2170
2171 return 0;
2172}
2173
2174static int tegra_dc_runtime_suspend(struct host1x_client *client)
2175{
2176 struct tegra_dc *dc = host1x_client_to_dc(client);
2177 struct device *dev = client->dev;

--- 487 unchanged lines hidden ---