All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/rockchip: remove redundant statement
@ 2016-04-05 13:50 ` John Keeping
  0 siblings, 0 replies; 12+ messages in thread
From: John Keeping @ 2016-04-05 13:50 UTC (permalink / raw)
  To: Mark Yao; +Cc: linux-kernel, dri-devel, linux-rockchip, linux-arm-kernel

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 | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
index f556a8f..7695c79 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;
 
-- 
2.8.0.rc4.238.g874082a

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-04-11  2:53 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-05 13:50 [PATCH 1/2] drm/rockchip: remove redundant statement John Keeping
2016-04-05 13:50 ` John Keeping
2016-04-05 13:50 ` John Keeping
2016-04-05 13:50 ` [PATCH 2/2] drm/rockchip: don't leak iommu mapping John Keeping
2016-04-05 13:50   ` John Keeping
2016-04-05 13:50   ` John Keeping
2016-04-11  2:52   ` Mark yao
2016-04-11  2:52     ` Mark yao
2016-04-11  2:52     ` Mark yao
2016-04-11  2:52 ` [PATCH 1/2] drm/rockchip: remove redundant statement Mark yao
2016-04-11  2:52   ` Mark yao
2016-04-11  2:52   ` Mark yao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.