aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/exynos-iommu.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2012-09-06 00:34:09 -0400
committerJoerg Roedel <joerg.roedel@amd.com>2012-09-18 06:44:02 -0400
commitf8ffcc9279f90ba3790c6dc0f01207ad6ea1c8df (patch)
tree8692c3656b58e502a01dbfde1f12e4ddb400b6d2 /drivers/iommu/exynos-iommu.c
parent5698bd757d55b1bb87edd1a9744ab09c142abfc2 (diff)
iommu/exynos: use list_del_init instead of list_del/INIT_LIST_HEAD
Using list_del_init() instead of list_del() + INIT_LIST_HEAD(). spatch with a semantic match is used to found this problem. (http://coccinelle.lip6.fr/) Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'drivers/iommu/exynos-iommu.c')
-rw-r--r--drivers/iommu/exynos-iommu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c
index 80bad32aa463..7fe44f83cc37 100644
--- a/drivers/iommu/exynos-iommu.c
+++ b/drivers/iommu/exynos-iommu.c
@@ -840,8 +840,7 @@ static void exynos_iommu_detach_device(struct iommu_domain *domain,
840 if (__exynos_sysmmu_disable(data)) { 840 if (__exynos_sysmmu_disable(data)) {
841 dev_dbg(dev, "%s: Detached IOMMU with pgtable %#lx\n", 841 dev_dbg(dev, "%s: Detached IOMMU with pgtable %#lx\n",
842 __func__, __pa(priv->pgtable)); 842 __func__, __pa(priv->pgtable));
843 list_del(&data->node); 843 list_del_init(&data->node);
844 INIT_LIST_HEAD(&data->node);
845 844
846 } else { 845 } else {
847 dev_dbg(dev, "%s: Detaching IOMMU with pgtable %#lx delayed", 846 dev_dbg(dev, "%s: Detaching IOMMU with pgtable %#lx delayed",