hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/video/fbdev/grvga.c
....@@ -1,18 +1,13 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Driver for Aeroflex Gaisler SVGACTRL framebuffer device.
34 *
45 * 2011 (c) Aeroflex Gaisler AB
56 *
67 * Full documentation of the core can be found here:
7
- * http://www.gaisler.com/products/grlib/grip.pdf
8
- *
9
- * This program is free software; you can redistribute it and/or modify it
10
- * under the terms of the GNU General Public License as published by the
11
- * Free Software Foundation; either version 2 of the License, or (at your
12
- * option) any later version.
8
+ * https://www.gaisler.com/products/grlib/grip.pdf
139 *
1410 * Contributors: Kristoffer Glembo <kristoffer@gaisler.com>
15
- *
1611 */
1712
1813 #include <linux/platform_device.h>
....@@ -256,7 +251,7 @@
256251 return 0;
257252 }
258253
259
-static struct fb_ops grvga_ops = {
254
+static const struct fb_ops grvga_ops = {
260255 .owner = THIS_MODULE,
261256 .fb_check_var = grvga_check_var,
262257 .fb_set_par = grvga_set_par,
....@@ -341,10 +336,8 @@
341336 char *options = NULL, *mode_opt = NULL;
342337
343338 info = framebuffer_alloc(sizeof(struct grvga_par), &dev->dev);
344
- if (!info) {
345
- dev_err(&dev->dev, "framebuffer_alloc failed\n");
339
+ if (!info)
346340 return -ENOMEM;
347
- }
348341
349342 /* Expecting: "grvga: modestring, [addr:<framebuffer physical address>], [size:<framebuffer size>]
350343 *