forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-09 244b2c5ca8b14627e4a17755e5922221e121c771
kernel/drivers/video/fbdev/sh7760fb.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * SH7760/SH7763 LCDC Framebuffer driver.
34 *
....@@ -5,11 +6,7 @@
56 * Manuel Lauss <mano@roarinelk.homelinux.net>
67 * (c) 2008 Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
78 *
8
- * This file is subject to the terms and conditions of the GNU General
9
- * Public License. See the file COPYING in the main directory of this
10
- * archive for more details.
11
- *
12
- * PLEASE HAVE A LOOK AT Documentation/fb/sh7760fb.txt!
9
+ * PLEASE HAVE A LOOK AT Documentation/fb/sh7760fb.rst!
1310 *
1411 * Thanks to Siegfried Schaefer <s.schaefer at schaefer-edv.de>
1512 * for his original source and testing!
....@@ -344,7 +341,7 @@
344341 return 0;
345342 }
346343
347
-static struct fb_ops sh7760fb_ops = {
344
+static const struct fb_ops sh7760fb_ops = {
348345 .owner = THIS_MODULE,
349346 .fb_blank = sh7760fb_blank,
350347 .fb_check_var = sh7760fb_check_var,
....@@ -466,7 +463,7 @@
466463 goto out_fb;
467464 }
468465
469
- par->base = ioremap_nocache(res->start, resource_size(res));
466
+ par->base = ioremap(res->start, resource_size(res));
470467 if (!par->base) {
471468 dev_err(&pdev->dev, "cannot remap\n");
472469 ret = -ENODEV;
....@@ -587,4 +584,4 @@
587584
588585 MODULE_AUTHOR("Nobuhiro Iwamatsu, Manuel Lauss");
589586 MODULE_DESCRIPTION("FBdev for SH7760/63 integrated LCD Controller");
590
-MODULE_LICENSE("GPL");
587
+MODULE_LICENSE("GPL v2");