forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/video/fbdev/acornfb.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/drivers/video/acornfb.c
34 *
45 * Copyright (C) 1998-2001 Russell King
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2 as
8
- * published by the Free Software Foundation.
96 *
107 * Frame buffer code for Acorn platforms
118 *
....@@ -33,7 +30,6 @@
3330 #include <mach/hardware.h>
3431 #include <asm/irq.h>
3532 #include <asm/mach-types.h>
36
-#include <asm/pgtable.h>
3733
3834 #include "acornfb.h"
3935
....@@ -607,7 +603,7 @@
607603 return 0;
608604 }
609605
610
-static struct fb_ops acornfb_ops = {
606
+static const struct fb_ops acornfb_ops = {
611607 .owner = THIS_MODULE,
612608 .fb_check_var = acornfb_check_var,
613609 .fb_set_par = acornfb_set_par,
....@@ -861,6 +857,7 @@
861857 case 'M':
862858 case 'm':
863859 size *= 1024;
860
+ fallthrough;
864861 case 'K':
865862 case 'k':
866863 size *= 1024;