forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/gpu/drm/msm/disp/mdp5/mdp5_mdss.c
....@@ -1,17 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2016, The Linux Foundation. All rights reserved.
3
- *
4
- * This program is free software; you can redistribute it and/or modify it
5
- * under the terms of the GNU General Public License version 2 as published by
6
- * the Free Software Foundation.
7
- *
8
- * This program is distributed in the hope that it will be useful, but WITHOUT
9
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11
- * more details.
12
- *
13
- * You should have received a copy of the GNU General Public License along with
14
- * this program. If not, see <http://www.gnu.org/licenses/>.
154 */
165
176 #include <linux/irqdomain.h>
....@@ -132,7 +121,7 @@
132121 d = irq_domain_add_linear(dev->of_node, 32, &mdss_hw_irqdomain_ops,
133122 mdp5_mdss);
134123 if (!d) {
135
- dev_err(dev, "mdss irq domain add failed\n");
124
+ DRM_DEV_ERROR(dev, "mdss irq domain add failed\n");
136125 return -ENXIO;
137126 }
138127
....@@ -246,7 +235,7 @@
246235
247236 ret = msm_mdss_get_clocks(mdp5_mdss);
248237 if (ret) {
249
- dev_err(dev->dev, "failed to get clocks: %d\n", ret);
238
+ DRM_DEV_ERROR(dev->dev, "failed to get clocks: %d\n", ret);
250239 goto fail;
251240 }
252241
....@@ -259,7 +248,7 @@
259248
260249 ret = regulator_enable(mdp5_mdss->vdd);
261250 if (ret) {
262
- dev_err(dev->dev, "failed to enable regulator vdd: %d\n",
251
+ DRM_DEV_ERROR(dev->dev, "failed to enable regulator vdd: %d\n",
263252 ret);
264253 goto fail;
265254 }
....@@ -267,13 +256,13 @@
267256 ret = devm_request_irq(dev->dev, platform_get_irq(pdev, 0),
268257 mdss_irq, 0, "mdss_isr", mdp5_mdss);
269258 if (ret) {
270
- dev_err(dev->dev, "failed to init irq: %d\n", ret);
259
+ DRM_DEV_ERROR(dev->dev, "failed to init irq: %d\n", ret);
271260 goto fail_irq;
272261 }
273262
274263 ret = mdss_irq_domain_init(mdp5_mdss);
275264 if (ret) {
276
- dev_err(dev->dev, "failed to init sub-block irqs: %d\n", ret);
265
+ DRM_DEV_ERROR(dev->dev, "failed to init sub-block irqs: %d\n", ret);
277266 goto fail_irq;
278267 }
279268