hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/gpu/drm/exynos/exynos_drm_fb.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /* exynos_drm_fb.c
23 *
34 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
....@@ -5,27 +6,21 @@
56 * Inki Dae <inki.dae@samsung.com>
67 * Joonyoung Shim <jy0922.shim@samsung.com>
78 * Seung-Woo Kim <sw0312.kim@samsung.com>
8
- *
9
- * This program is free software; you can redistribute it and/or modify it
10
- * under the terms of the GNU General Public License as published by the
11
- * Free Software Foundation; either version 2 of the License, or (at your
12
- * option) any later version.
139 */
1410
15
-#include <drm/drmP.h>
16
-#include <drm/drm_crtc.h>
17
-#include <drm/drm_crtc_helper.h>
18
-#include <drm/drm_fb_helper.h>
1911 #include <drm/drm_atomic.h>
2012 #include <drm/drm_atomic_helper.h>
13
+#include <drm/drm_crtc.h>
14
+#include <drm/drm_fb_helper.h>
15
+#include <drm/drm_fourcc.h>
2116 #include <drm/drm_gem_framebuffer_helper.h>
22
-#include <uapi/drm/exynos_drm.h>
17
+#include <drm/drm_probe_helper.h>
18
+#include <drm/exynos_drm.h>
2319
20
+#include "exynos_drm_crtc.h"
2421 #include "exynos_drm_drv.h"
2522 #include "exynos_drm_fb.h"
2623 #include "exynos_drm_fbdev.h"
27
-#include "exynos_drm_iommu.h"
28
-#include "exynos_drm_crtc.h"
2924
3025 static int check_fb_gem_memory_type(struct drm_device *drm_dev,
3126 struct exynos_drm_gem *exynos_gem)
....@@ -46,7 +41,8 @@
4641 * supported without IOMMU.
4742 */
4843 if (IS_NONCONTIG_BUFFER(flags)) {
49
- DRM_ERROR("Non-contiguous GEM memory is not supported.\n");
44
+ DRM_DEV_ERROR(drm_dev->dev,
45
+ "Non-contiguous GEM memory is not supported.\n");
5046 return -EINVAL;
5147 }
5248
....@@ -84,7 +80,8 @@
8480
8581 ret = drm_framebuffer_init(dev, fb, &exynos_drm_fb_funcs);
8682 if (ret < 0) {
87
- DRM_ERROR("failed to initialize framebuffer\n");
83
+ DRM_DEV_ERROR(dev->dev,
84
+ "failed to initialize framebuffer\n");
8885 goto err;
8986 }
9087
....@@ -114,7 +111,8 @@
114111 exynos_gem[i] = exynos_drm_gem_get(file_priv,
115112 mode_cmd->handles[i]);
116113 if (!exynos_gem[i]) {
117
- DRM_ERROR("failed to lookup gem object\n");
114
+ DRM_DEV_ERROR(dev->dev,
115
+ "failed to lookup gem object\n");
118116 ret = -ENOENT;
119117 goto err;
120118 }