summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/rockchip
diff options
context:
space:
mode:
authorJohn Keeping <john@metanate.com>2016-04-05 15:50:31 +0200
committerMark Yao <mark.yao@rock-chips.com>2016-05-03 08:11:22 +0200
commitaa1ac27f48de0ed94d5a104e15b5ab62b5deb236 (patch)
treeab2b8cbc3501c39d129faf07968db97bf3d953ac /drivers/gpu/drm/rockchip
parentMerge branch 'for-next' of http://git.agner.ch/git/linux-drm-fsl-dcu into drm... (diff)
downloadlinux-aa1ac27f48de0ed94d5a104e15b5ab62b5deb236.tar.xz
linux-aa1ac27f48de0ed94d5a104e15b5ab62b5deb236.zip
drm/rockchip: remove redundant statement
The call to arm_iommu_detach_device() on the previous line sets dev->archdata.mapping to NULL so this call is always a no-op. Signed-off-by: John Keeping <john@metanate.com>
Diffstat (limited to 'drivers/gpu/drm/rockchip')
-rw-r--r--drivers/gpu/drm/rockchip/rockchip_drm_drv.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
index f556a8f4fde6..7695c791ad95 100644
--- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
@@ -244,7 +244,6 @@ static int rockchip_drm_unload(struct drm_device *drm_dev)
drm_kms_helper_poll_fini(drm_dev);
component_unbind_all(dev, drm_dev);
arm_iommu_detach_device(dev);
- arm_iommu_release_mapping(dev->archdata.mapping);
drm_mode_config_cleanup(drm_dev);
drm_dev->dev_private = NULL;