.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * framebuffer-coreboot.c |
---|
3 | 4 | * |
---|
.. | .. |
---|
6 | 7 | * Copyright 2012-2013 David Herrmann <dh.herrmann@gmail.com> |
---|
7 | 8 | * Copyright 2017 Google Inc. |
---|
8 | 9 | * 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. |
---|
18 | 10 | */ |
---|
19 | 11 | |
---|
20 | 12 | #include <linux/device.h> |
---|
.. | .. |
---|
51 | 43 | fb->green_mask_pos == formats[i].green.offset && |
---|
52 | 44 | fb->green_mask_size == formats[i].green.length && |
---|
53 | 45 | 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) |
---|
57 | 47 | pdata.format = formats[i].name; |
---|
58 | 48 | } |
---|
59 | 49 | if (!pdata.format) |
---|
.. | .. |
---|
97 | 87 | }, |
---|
98 | 88 | .tag = CB_TAG_FRAMEBUFFER, |
---|
99 | 89 | }; |
---|
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); |
---|
113 | 91 | |
---|
114 | 92 | MODULE_AUTHOR("Samuel Holland <samuel@sholland.org>"); |
---|
115 | 93 | MODULE_LICENSE("GPL"); |
---|