forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 95099d4622f8cb224d94e314c7a8e0df60b13f87
kernel/drivers/video/fbdev/vermilion/vermilion.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (c) Intel Corp. 2007.
34 * All Rights Reserved.
....@@ -6,21 +7,6 @@
67 * develop this driver.
78 *
89 * This file is part of the Vermilion Range fb driver.
9
- * The Vermilion Range fb driver is free software;
10
- * you can redistribute it and/or modify
11
- * it under the terms of the GNU General Public License as published by
12
- * the Free Software Foundation; either version 2 of the License, or
13
- * (at your option) any later version.
14
- *
15
- * The Vermilion Range fb driver is distributed
16
- * in the hope that it will be useful,
17
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
- * GNU General Public License for more details.
20
- *
21
- * You should have received a copy of the GNU General Public License
22
- * along with this driver; if not, write to the Free Software
23
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2410 *
2511 * Authors:
2612 * Thomas Hellström <thomas-at-tungstengraphics-dot-com>
....@@ -331,7 +317,7 @@
331317 ": Could not claim display controller MMIO.\n");
332318 return -EBUSY;
333319 }
334
- par->vdc_mem = ioremap_nocache(par->vdc_mem_base, par->vdc_mem_size);
320
+ par->vdc_mem = ioremap(par->vdc_mem_base, par->vdc_mem_size);
335321 if (par->vdc_mem == NULL) {
336322 printk(KERN_ERR MODULE_NAME
337323 ": Could not map display controller MMIO.\n");
....@@ -346,7 +332,7 @@
346332 err = -EBUSY;
347333 goto out_err_1;
348334 }
349
- par->gpu_mem = ioremap_nocache(par->gpu_mem_base, par->gpu_mem_size);
335
+ par->gpu_mem = ioremap(par->gpu_mem_base, par->gpu_mem_size);
350336 if (par->gpu_mem == NULL) {
351337 printk(KERN_ERR MODULE_NAME ": Could not map GPU MMIO.\n");
352338 err = -ENOMEM;