/* Real error */
--- a/drivers/gpu/drm/i810/i810_dma.c
+++ b/drivers/gpu/drm/i810/i810_dma.c
-@@ -133,9 +133,17 @@ static int i810_map_buffer(struct drm_bu
+@@ -136,9 +136,17 @@ static int i810_map_buffer(struct drm_bu
old_fops = file_priv->filp->f_op;
file_priv->filp->f_op = &i810_buffer_fops;
dev_priv->mmap_buffer = buf;
dev_priv->mmap_buffer = NULL;
file_priv->filp->f_op = old_fops;
if (IS_ERR(buf_priv->virtual)) {
-@@ -156,9 +164,15 @@ static int i810_unmap_buffer(struct drm_
+@@ -159,9 +167,15 @@ static int i810_unmap_buffer(struct drm_
if (buf_priv->currently_mapped != I810_BUF_MAPPED)
return -EINVAL;
drm_prime_destroy_file_private(&file_priv->prime);
+#endif
+ put_pid(file_priv->pid);
kfree(file_priv);
-
--- a/drivers/gpu/drm/drm_gem.c
+++ b/drivers/gpu/drm/drm_gem.c
@@ -35,7 +35,11 @@
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
-@@ -956,7 +956,11 @@ static struct drm_driver driver = {
+@@ -955,7 +955,11 @@ static struct drm_driver driver = {
*/
.driver_features =
DRIVER_USE_AGP | DRIVER_REQUIRE_AGP | /* DRIVER_USE_MTRR |*/
.load = i915_driver_load,
.unload = i915_driver_unload,
.open = i915_driver_open,
-@@ -979,10 +983,12 @@ static struct drm_driver driver = {
+@@ -978,10 +982,12 @@ static struct drm_driver driver = {
.gem_free_object = i915_gem_free_object,
.gem_vm_ops = &i915_gem_vm_ops,
static void i915_gem_object_flush_gtt_write_domain(struct drm_i915_gem_object *obj);
static void i915_gem_object_flush_cpu_write_domain(struct drm_i915_gem_object *obj);
-@@ -3700,8 +3702,10 @@ void i915_gem_free_object(struct drm_gem
+@@ -3701,8 +3703,10 @@ void i915_gem_free_object(struct drm_gem
trace_i915_gem_object_destroy(obj);
--- a/drivers/gpu/drm/Makefile
+++ b/drivers/gpu/drm/Makefile
-@@ -28,21 +28,14 @@ CFLAGS_drm_trace_points.o := -I$(src)
+@@ -30,22 +30,15 @@ CFLAGS_drm_trace_points.o := -I$(src)
obj-$(CONFIG_DRM) += drm.o
obj-$(CONFIG_DRM_USB) += drm_usb.o
obj-$(CONFIG_DRM_TTM) += ttm/
obj-$(CONFIG_DRM_GMA500) += gma500/
-obj-$(CONFIG_DRM_UDL) += udl/
obj-$(CONFIG_DRM_AST) += ast/
+ obj-$(CONFIG_DRM_SHMOBILE) +=shmobile/
obj-y += i2c/