]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/msm: remove the drm_device_is_unplugged check
authorHaixia Shi <hshi@chromium.org>
Fri, 5 Feb 2016 21:57:43 +0000 (13:57 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 9 Feb 2016 15:34:45 +0000 (16:34 +0100)
This flag is only used for drm/udl.

Signed-off-by: Haixia Shi <hshi@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Acked-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1454709464-2536-1-git-send-email-hshi@chromium.org
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__);