diff options
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_fb.c')
| -rw-r--r-- | drivers/gpu/drm/omapdrm/omap_fb.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_fb.c b/drivers/gpu/drm/omapdrm/omap_fb.c index 94ec06d3d737..983c8cf2441c 100644 --- a/drivers/gpu/drm/omapdrm/omap_fb.c +++ b/drivers/gpu/drm/omapdrm/omap_fb.c | |||
| @@ -17,6 +17,8 @@ | |||
| 17 | * this program. If not, see <http://www.gnu.org/licenses/>. | 17 | * this program. If not, see <http://www.gnu.org/licenses/>. |
| 18 | */ | 18 | */ |
| 19 | 19 | ||
| 20 | #include <linux/seq_file.h> | ||
| 21 | |||
| 20 | #include <drm/drm_crtc.h> | 22 | #include <drm/drm_crtc.h> |
| 21 | #include <drm/drm_crtc_helper.h> | 23 | #include <drm/drm_crtc_helper.h> |
| 22 | 24 | ||
| @@ -120,17 +122,9 @@ static void omap_framebuffer_destroy(struct drm_framebuffer *fb) | |||
| 120 | kfree(omap_fb); | 122 | kfree(omap_fb); |
| 121 | } | 123 | } |
| 122 | 124 | ||
| 123 | static int omap_framebuffer_dirty(struct drm_framebuffer *fb, | ||
| 124 | struct drm_file *file_priv, unsigned flags, unsigned color, | ||
| 125 | struct drm_clip_rect *clips, unsigned num_clips) | ||
| 126 | { | ||
| 127 | return 0; | ||
| 128 | } | ||
| 129 | |||
| 130 | static const struct drm_framebuffer_funcs omap_framebuffer_funcs = { | 125 | static const struct drm_framebuffer_funcs omap_framebuffer_funcs = { |
| 131 | .create_handle = omap_framebuffer_create_handle, | 126 | .create_handle = omap_framebuffer_create_handle, |
| 132 | .destroy = omap_framebuffer_destroy, | 127 | .destroy = omap_framebuffer_destroy, |
| 133 | .dirty = omap_framebuffer_dirty, | ||
| 134 | }; | 128 | }; |
| 135 | 129 | ||
| 136 | static uint32_t get_linear_addr(struct plane *plane, | 130 | static uint32_t get_linear_addr(struct plane *plane, |
| @@ -318,14 +312,6 @@ void omap_framebuffer_unpin(struct drm_framebuffer *fb) | |||
| 318 | mutex_unlock(&omap_fb->lock); | 312 | mutex_unlock(&omap_fb->lock); |
| 319 | } | 313 | } |
| 320 | 314 | ||
| 321 | struct drm_gem_object *omap_framebuffer_bo(struct drm_framebuffer *fb, int p) | ||
| 322 | { | ||
| 323 | struct omap_framebuffer *omap_fb = to_omap_framebuffer(fb); | ||
| 324 | if (p >= drm_format_num_planes(fb->pixel_format)) | ||
| 325 | return NULL; | ||
| 326 | return omap_fb->planes[p].bo; | ||
| 327 | } | ||
| 328 | |||
| 329 | /* iterate thru all the connectors, returning ones that are attached | 315 | /* iterate thru all the connectors, returning ones that are attached |
| 330 | * to the same fb.. | 316 | * to the same fb.. |
| 331 | */ | 317 | */ |
