hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/drivers/video/fbdev/ep93xx-fb.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/drivers/video/ep93xx-fb.c
34 *
....@@ -10,11 +11,6 @@
1011 *
1112 * Based on the Cirrus Logic ep93xxfb driver, and various other ep93xxfb
1213 * drivers.
13
- *
14
- * This program is free software; you can redistribute it and/or modify
15
- * it under the terms of the GNU General Public License version 2 as
16
- * published by the Free Software Foundation.
17
- *
1814 */
1915
2016 #include <linux/platform_device.h>
....@@ -406,7 +402,7 @@
406402 return 0;
407403 }
408404
409
-static struct fb_ops ep93xxfb_ops = {
405
+static const struct fb_ops ep93xxfb_ops = {
410406 .owner = THIS_MODULE,
411407 .fb_check_var = ep93xxfb_check_var,
412408 .fb_set_par = ep93xxfb_set_par,
....@@ -434,7 +430,7 @@
434430 /*
435431 * There is a bug in the ep93xx framebuffer which causes problems
436432 * if bit 27 of the physical address is set.
437
- * See: http://marc.info/?l=linux-arm-kernel&m=110061245502000&w=2
433
+ * See: https://marc.info/?l=linux-arm-kernel&m=110061245502000&w=2
438434 * There does not seem to be any official errata for this, but I
439435 * have confirmed the problem exists on my hardware (ep9315) at
440436 * least.
....@@ -478,7 +474,6 @@
478474 if (!info)
479475 return -ENOMEM;
480476
481
- info->dev = &pdev->dev;
482477 platform_set_drvdata(pdev, info);
483478 fbi = info->par;
484479 fbi->mach_info = mach_info;