.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * 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/>. |
---|
15 | 4 | */ |
---|
16 | 5 | |
---|
17 | 6 | #include <linux/irqdomain.h> |
---|
.. | .. |
---|
132 | 121 | d = irq_domain_add_linear(dev->of_node, 32, &mdss_hw_irqdomain_ops, |
---|
133 | 122 | mdp5_mdss); |
---|
134 | 123 | if (!d) { |
---|
135 | | - dev_err(dev, "mdss irq domain add failed\n"); |
---|
| 124 | + DRM_DEV_ERROR(dev, "mdss irq domain add failed\n"); |
---|
136 | 125 | return -ENXIO; |
---|
137 | 126 | } |
---|
138 | 127 | |
---|
.. | .. |
---|
246 | 235 | |
---|
247 | 236 | ret = msm_mdss_get_clocks(mdp5_mdss); |
---|
248 | 237 | 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); |
---|
250 | 239 | goto fail; |
---|
251 | 240 | } |
---|
252 | 241 | |
---|
.. | .. |
---|
259 | 248 | |
---|
260 | 249 | ret = regulator_enable(mdp5_mdss->vdd); |
---|
261 | 250 | 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", |
---|
263 | 252 | ret); |
---|
264 | 253 | goto fail; |
---|
265 | 254 | } |
---|
.. | .. |
---|
267 | 256 | ret = devm_request_irq(dev->dev, platform_get_irq(pdev, 0), |
---|
268 | 257 | mdss_irq, 0, "mdss_isr", mdp5_mdss); |
---|
269 | 258 | 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); |
---|
271 | 260 | goto fail_irq; |
---|
272 | 261 | } |
---|
273 | 262 | |
---|
274 | 263 | ret = mdss_irq_domain_init(mdp5_mdss); |
---|
275 | 264 | 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); |
---|
277 | 266 | goto fail_irq; |
---|
278 | 267 | } |
---|
279 | 268 | |
---|