Merge branch 'gma500-next' of git://github.com/patjak/drm-gma500 into drm-next
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / drm / gma500 / gtt.c
index 01e32420388db5e6035eb44ae0f814c7976035f6..1f82183536a32014f0d73af7fea740489476ab35 100644 (file)
@@ -205,7 +205,7 @@ static int psb_gtt_attach_pages(struct gtt_range *gt)
        WARN_ON(gt->pages);
 
        /* This is the shared memory object that backs the GEM resource */
-       inode = gt->gem.filp->f_path.dentry->d_inode;
+       inode = file_inode(gt->gem.filp);
        mapping = inode->i_mapping;
 
        gt->pages = kmalloc(pages * sizeof(struct page *), GFP_KERNEL);