.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * HP300 Topcat framebuffer support (derived from macfb of all things) |
---|
3 | 4 | * Phil Blundell <philb@gnu.org> 1998 |
---|
.. | .. |
---|
183 | 184 | return 0; |
---|
184 | 185 | } |
---|
185 | 186 | |
---|
186 | | -static struct fb_ops hpfb_ops = { |
---|
| 187 | +static const struct fb_ops hpfb_ops = { |
---|
187 | 188 | .owner = THIS_MODULE, |
---|
188 | 189 | .fb_setcolreg = hpfb_setcolreg, |
---|
189 | 190 | .fb_blank = hpfb_blank, |
---|
.. | .. |
---|
401 | 402 | if (err) |
---|
402 | 403 | return err; |
---|
403 | 404 | |
---|
404 | | - err = probe_kernel_read(&i, (unsigned char *)INTFBVADDR + DIO_IDOFF, 1); |
---|
| 405 | + err = copy_from_kernel_nofault(&i, (unsigned char *)INTFBVADDR + DIO_IDOFF, 1); |
---|
405 | 406 | |
---|
406 | 407 | if (!err && (i == DIO_ID_FBUFFER) && topcat_sid_ok(sid = DIO_SECID(INTFBVADDR))) { |
---|
407 | 408 | if (!request_mem_region(INTFBPADDR, DIO_DEVSIZE, "Internal Topcat")) |
---|