forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/video/fbdev/i810/i810_main.c
....@@ -1883,7 +1883,7 @@
18831883 }
18841884 par->res_flags |= MMIO_REQ;
18851885
1886
- par->mmio_start_virtual = ioremap_nocache(par->mmio_start_phys,
1886
+ par->mmio_start_virtual = ioremap(par->mmio_start_phys,
18871887 MMIO_SIZE);
18881888 if (!par->mmio_start_virtual) {
18891889 printk("i810fb_init: cannot remap mmio region\n");
....@@ -1966,13 +1966,13 @@
19661966
19671967 while ((this_opt = strsep(&options, ",")) != NULL) {
19681968 if (!strncmp(this_opt, "mtrr", 4))
1969
- mtrr = 1;
1969
+ mtrr = true;
19701970 else if (!strncmp(this_opt, "accel", 5))
1971
- accel = 1;
1971
+ accel = true;
19721972 else if (!strncmp(this_opt, "extvga", 6))
1973
- extvga = 1;
1973
+ extvga = true;
19741974 else if (!strncmp(this_opt, "sync", 4))
1975
- sync = 1;
1975
+ sync = true;
19761976 else if (!strncmp(this_opt, "vram:", 5))
19771977 vram = (simple_strtoul(this_opt+5, NULL, 0));
19781978 else if (!strncmp(this_opt, "voffset:", 8))
....@@ -1998,7 +1998,7 @@
19981998 else if (!strncmp(this_opt, "vsync2:", 7))
19991999 vsync2 = simple_strtoul(this_opt+7, NULL, 0);
20002000 else if (!strncmp(this_opt, "dcolor", 6))
2001
- dcolor = 1;
2001
+ dcolor = true;
20022002 else if (!strncmp(this_opt, "ddc3", 4))
20032003 ddc3 = true;
20042004 else