| .. | .. |
|---|
| 70 | 70 | |
|---|
| 71 | 71 | #include <asm/io.h> |
|---|
| 72 | 72 | #include <asm/irq.h> |
|---|
| 73 | | -#include <asm/pgtable.h> |
|---|
| 74 | 73 | #include <video/vga.h> |
|---|
| 75 | 74 | #include <video/neomagic.h> |
|---|
| 76 | 75 | |
|---|
| .. | .. |
|---|
| 1610 | 1609 | } |
|---|
| 1611 | 1610 | */ |
|---|
| 1612 | 1611 | |
|---|
| 1613 | | -static struct fb_ops neofb_ops = { |
|---|
| 1612 | +static const struct fb_ops neofb_ops = { |
|---|
| 1614 | 1613 | .owner = THIS_MODULE, |
|---|
| 1615 | 1614 | .fb_open = neofb_open, |
|---|
| 1616 | 1615 | .fb_release = neofb_release, |
|---|
| .. | .. |
|---|
| 2123 | 2122 | DBG("neofb_remove"); |
|---|
| 2124 | 2123 | |
|---|
| 2125 | 2124 | if (info) { |
|---|
| 2126 | | - /* |
|---|
| 2127 | | - * If unregister_framebuffer fails, then |
|---|
| 2128 | | - * we will be leaving hooks that could cause |
|---|
| 2129 | | - * oopsen laying around. |
|---|
| 2130 | | - */ |
|---|
| 2131 | | - if (unregister_framebuffer(info)) |
|---|
| 2132 | | - printk(KERN_WARNING |
|---|
| 2133 | | - "neofb: danger danger! Oopsen imminent!\n"); |
|---|
| 2125 | + unregister_framebuffer(info); |
|---|
| 2134 | 2126 | |
|---|
| 2135 | 2127 | neo_unmap_video(info); |
|---|
| 2136 | 2128 | fb_destroy_modedb(info->monspecs.modedb); |
|---|