Lines 126-132
Link Here
|
126 |
.open = drm_open, |
126 |
.open = drm_open, |
127 |
.release = drm_release, |
127 |
.release = drm_release, |
128 |
.unlocked_ioctl = drm_ioctl, |
128 |
.unlocked_ioctl = drm_ioctl, |
129 |
.mmap = drm_mmap, |
129 |
# if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0) |
|
|
130 |
/* This shouldn't be necessary even for old kernels as there is |
131 |
* nothing sensible to mmap. But we play safe and keep it for |
132 |
* legacy reasons. */ |
133 |
.mmap = drm_mmap, |
134 |
# endif |
130 |
.poll = drm_poll, |
135 |
.poll = drm_poll, |
131 |
}; |
136 |
}; |
132 |
#endif |
137 |
#endif |
Lines 143-148
Link Here
|
143 |
.get_map_ofs = drm_core_get_map_ofs, |
148 |
.get_map_ofs = drm_core_get_map_ofs, |
144 |
.get_reg_ofs = drm_core_get_reg_ofs, |
149 |
.get_reg_ofs = drm_core_get_reg_ofs, |
145 |
#endif |
150 |
#endif |
|
|
151 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0) |
152 |
/* If this is missing a warning gets printed to dmesg. We will not |
153 |
* attempt to make kernels work to which the change (915b4d11b) got back- |
154 |
* ported, as the problem is only cosmetic. */ |
155 |
.set_busid = drm_pci_set_busid, |
156 |
#endif |
146 |
# if LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0) && !defined(DRM_FOPS_AS_POINTER) |
157 |
# if LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0) && !defined(DRM_FOPS_AS_POINTER) |
147 |
.fops = |
158 |
.fops = |
148 |
{ |
159 |
{ |