forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-09 244b2c5ca8b14627e4a17755e5922221e121c771
kernel/drivers/video/fbdev/68328fb.c
....@@ -96,7 +96,7 @@
9696 struct fb_info *info);
9797 static int mc68x328fb_mmap(struct fb_info *info, struct vm_area_struct *vma);
9898
99
-static struct fb_ops mc68x328fb_ops = {
99
+static const struct fb_ops mc68x328fb_ops = {
100100 .fb_check_var = mc68x328fb_check_var,
101101 .fb_set_par = mc68x328fb_set_par,
102102 .fb_setcolreg = mc68x328fb_setcolreg,
....@@ -405,20 +405,8 @@
405405
406406 int __init mc68x328fb_setup(char *options)
407407 {
408
-#if 0
409
- char *this_opt;
410
-#endif
411
-
412408 if (!options || !*options)
413409 return 1;
414
-#if 0
415
- while ((this_opt = strsep(&options, ",")) != NULL) {
416
- if (!*this_opt)
417
- continue;
418
- if (!strncmp(this_opt, "disable", 7))
419
- mc68x328fb_enable = 0;
420
- }
421
-#endif
422410 return 1;
423411 }
424412