hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/drivers/firmware/google/framebuffer-coreboot.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * framebuffer-coreboot.c
34 *
....@@ -6,15 +7,6 @@
67 * Copyright 2012-2013 David Herrmann <dh.herrmann@gmail.com>
78 * Copyright 2017 Google Inc.
89 * Copyright 2017 Samuel Holland <samuel@sholland.org>
9
- *
10
- * This program is free software; you can redistribute it and/or modify
11
- * it under the terms of the GNU General Public License v2.0 as published by
12
- * the Free Software Foundation.
13
- *
14
- * This program is distributed in the hope that it will be useful,
15
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
- * GNU General Public License for more details.
1810 */
1911
2012 #include <linux/device.h>
....@@ -51,9 +43,7 @@
5143 fb->green_mask_pos == formats[i].green.offset &&
5244 fb->green_mask_size == formats[i].green.length &&
5345 fb->blue_mask_pos == formats[i].blue.offset &&
54
- fb->blue_mask_size == formats[i].blue.length &&
55
- fb->reserved_mask_pos == formats[i].transp.offset &&
56
- fb->reserved_mask_size == formats[i].transp.length)
46
+ fb->blue_mask_size == formats[i].blue.length)
5747 pdata.format = formats[i].name;
5848 }
5949 if (!pdata.format)
....@@ -97,19 +87,7 @@
9787 },
9888 .tag = CB_TAG_FRAMEBUFFER,
9989 };
100
-
101
-static int __init coreboot_framebuffer_init(void)
102
-{
103
- return coreboot_driver_register(&framebuffer_driver);
104
-}
105
-
106
-static void coreboot_framebuffer_exit(void)
107
-{
108
- coreboot_driver_unregister(&framebuffer_driver);
109
-}
110
-
111
-module_init(coreboot_framebuffer_init);
112
-module_exit(coreboot_framebuffer_exit);
90
+module_coreboot_driver(framebuffer_driver);
11391
11492 MODULE_AUTHOR("Samuel Holland <samuel@sholland.org>");
11593 MODULE_LICENSE("GPL");