forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/gpu/drm/gma500/gem.c
....@@ -1,20 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * psb GEM interface
34 *
45 * Copyright (c) 2011, Intel Corporation.
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms and conditions of the GNU General Public License,
8
- * version 2, as published by the Free Software Foundation.
9
- *
10
- * This program is distributed in the hope it will be useful, but WITHOUT
11
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13
- * more details.
14
- *
15
- * You should have received a copy of the GNU General Public License along with
16
- * this program; if not, write to the Free Software Foundation, Inc.,
17
- * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
186 *
197 * Authors: Alan Cox
208 *
....@@ -23,10 +11,11 @@
2311 * accelerated operations on a GEM object)
2412 */
2513
26
-#include <drm/drmP.h>
14
+#include <linux/pagemap.h>
15
+
2716 #include <drm/drm.h>
28
-#include <drm/gma_drm.h>
2917 #include <drm/drm_vma_manager.h>
18
+
3019 #include "psb_drv.h"
3120
3221 void psb_gem_free_object(struct drm_gem_object *obj)
....@@ -93,7 +82,7 @@
9382 return ret;
9483 }
9584 /* We have the initial and handle reference but need only one now */
96
- drm_gem_object_put_unlocked(&r->gem);
85
+ drm_gem_object_put(&r->gem);
9786 *handlep = handle;
9887 return 0;
9988 }