| .. | .. |
|---|
| 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> |
|---|
| .. | .. |
|---|
| 97 | 89 | }, |
|---|
| 98 | 90 | .tag = CB_TAG_FRAMEBUFFER, |
|---|
| 99 | 91 | }; |
|---|
| 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); |
|---|
| 113 | 93 | |
|---|
| 114 | 94 | MODULE_AUTHOR("Samuel Holland <samuel@sholland.org>"); |
|---|
| 115 | 95 | MODULE_LICENSE("GPL"); |
|---|