drm/msm: remove the drm_device_is_unplugged check
authorHaixia Shi <[email protected]>
Fri, 5 Feb 2016 21:57:43 +0000 (13:57 -0800)
committerDaniel Vetter <[email protected]>
Tue, 9 Feb 2016 15:34:45 +0000 (16:34 +0100)
This flag is only used for drm/udl.

Signed-off-by: Haixia Shi <[email protected]>
Reviewed-by: Stéphane Marchesin <[email protected]>
Reviewed-by: David Herrmann <[email protected]>
Acked-by: Rob Clark <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/msm/msm_fbdev.c

index d95af6eba6020ff0f7368c4a211cc21dcdd21eff..e119c2979509744adc61998cf4ec4ccbbe60c14b 100644 (file)
@@ -65,9 +65,6 @@ static int msm_fbdev_mmap(struct fb_info *info, struct vm_area_struct *vma)
        struct drm_device *dev = helper->dev;
        int ret = 0;
 
-       if (drm_device_is_unplugged(dev))
-               return -ENODEV;
-
        ret = drm_gem_mmap_obj(drm_obj, drm_obj->size, vma);
        if (ret) {
                pr_err("%s:drm_gem_mmap_obj fail\n", __func__);