| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * linux/drivers/video/sstfb.c -- voodoo graphics frame buffer |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 732 | 733 | { |
|---|
| 733 | 734 | struct fb_info *info = dev_get_drvdata(device); |
|---|
| 734 | 735 | struct sstfb_par *par = info->par; |
|---|
| 735 | | - return snprintf(buf, PAGE_SIZE, "%d\n", par->vgapass); |
|---|
| 736 | + return sprintf(buf, "%d\n", par->vgapass); |
|---|
| 736 | 737 | } |
|---|
| 737 | 738 | |
|---|
| 738 | 739 | static struct device_attribute device_attrs[] = { |
|---|
| .. | .. |
|---|
| 1306 | 1307 | } |
|---|
| 1307 | 1308 | |
|---|
| 1308 | 1309 | |
|---|
| 1309 | | -static struct fb_ops sstfb_ops = { |
|---|
| 1310 | +static const struct fb_ops sstfb_ops = { |
|---|
| 1310 | 1311 | .owner = THIS_MODULE, |
|---|
| 1311 | 1312 | .fb_check_var = sstfb_check_var, |
|---|
| 1312 | 1313 | .fb_set_par = sstfb_set_par, |
|---|
| .. | .. |
|---|
| 1362 | 1363 | goto fail_fb_mem; |
|---|
| 1363 | 1364 | } |
|---|
| 1364 | 1365 | |
|---|
| 1365 | | - par->mmio_vbase = ioremap_nocache(fix->mmio_start, |
|---|
| 1366 | + par->mmio_vbase = ioremap(fix->mmio_start, |
|---|
| 1366 | 1367 | fix->mmio_len); |
|---|
| 1367 | 1368 | if (!par->mmio_vbase) { |
|---|
| 1368 | 1369 | printk(KERN_ERR "sstfb: cannot remap register area %#lx\n", |
|---|
| 1369 | 1370 | fix->mmio_start); |
|---|
| 1370 | 1371 | goto fail_mmio_remap; |
|---|
| 1371 | 1372 | } |
|---|
| 1372 | | - info->screen_base = ioremap_nocache(fix->smem_start, 0x400000); |
|---|
| 1373 | + info->screen_base = ioremap(fix->smem_start, 0x400000); |
|---|
| 1373 | 1374 | if (!info->screen_base) { |
|---|
| 1374 | 1375 | printk(KERN_ERR "sstfb: cannot remap framebuffer %#lx\n", |
|---|
| 1375 | 1376 | fix->smem_start); |
|---|