forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
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>
....@@ -97,19 +89,7 @@
9789 },
9890 .tag = CB_TAG_FRAMEBUFFER,
9991 };
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);
92
+module_coreboot_driver(framebuffer_driver);
11393
11494 MODULE_AUTHOR("Samuel Holland <samuel@sholland.org>");
11595 MODULE_LICENSE("GPL");