Merge branch 'd_real' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs...
[cascardo/linux.git] / drivers / gpu / drm / omapdrm / omap_gem.c
index b97afc2..0dbd0f0 100644 (file)
@@ -17,6 +17,7 @@
  * this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <linux/seq_file.h>
 #include <linux/shmem_fs.h>
 #include <linux/spinlock.h>
 #include <linux/pfn_t.h>
@@ -1406,7 +1407,7 @@ struct drm_gem_object *omap_gem_new(struct drm_device *dev,
                if (ret)
                        goto err_free;
 
-               mapping = file_inode(obj->filp)->i_mapping;
+               mapping = obj->filp->f_mapping;
                mapping_set_gfp_mask(mapping, GFP_USER | __GFP_DMA32);
        }