| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Simplest possible simple frame-buffer driver, as a platform device |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 9 | 10 | * Also based on offb.c, which was: |
|---|
| 10 | 11 | * Copyright (C) 1997 Geert Uytterhoeven |
|---|
| 11 | 12 | * Copyright (C) 1996 Paul Mackerras |
|---|
| 12 | | - * |
|---|
| 13 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 14 | | - * under the terms and conditions of the GNU General Public License, |
|---|
| 15 | | - * version 2, as published by the Free Software Foundation. |
|---|
| 16 | | - * |
|---|
| 17 | | - * This program is distributed in the hope it will be useful, but WITHOUT |
|---|
| 18 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|---|
| 19 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|---|
| 20 | | - * more details. |
|---|
| 21 | 13 | */ |
|---|
| 22 | 14 | |
|---|
| 23 | 15 | #include <linux/errno.h> |
|---|
| .. | .. |
|---|
| 86 | 78 | iounmap(info->screen_base); |
|---|
| 87 | 79 | } |
|---|
| 88 | 80 | |
|---|
| 89 | | -static struct fb_ops simplefb_ops = { |
|---|
| 81 | +static const struct fb_ops simplefb_ops = { |
|---|
| 90 | 82 | .owner = THIS_MODULE, |
|---|
| 91 | 83 | .fb_destroy = simplefb_destroy, |
|---|
| 92 | 84 | .fb_setcolreg = simplefb_setcolreg, |
|---|