drm/rockchip: remove redundant statement
authorJohn Keeping <john@metanate.com>
Tue, 5 Apr 2016 13:50:31 +0000 (14:50 +0100)
committerMark Yao <mark.yao@rock-chips.com>
Tue, 3 May 2016 06:11:22 +0000 (14:11 +0800)
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>
drivers/gpu/drm/rockchip/rockchip_drm_drv.c

index f556a8f4fde6c7f2e6f36708b07a2d1de4d13118..7695c791ad952a086db1fd32fdce992617c3f9ab 100644 (file)
@@ -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;