From: Sami Liedes Date: Mon, 4 Feb 2013 12:31:48 +0000 (+0200) Subject: iommu/tegra: Add missing spinlock initialization X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0fde671b81d406a59ae21f35f121851509c3b138;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git iommu/tegra: Add missing spinlock initialization Fix tegra_smmu_probe() to initialize client_lock spinlocks in per-address-space structures. Signed-off-by: Sami Liedes Signed-off-by: Joerg Roedel --- diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c index fc178893789..87a719f4adf 100644 --- a/drivers/iommu/tegra-smmu.c +++ b/drivers/iommu/tegra-smmu.c @@ -1,7 +1,7 @@ /* * IOMMU API for SMMU in Tegra30 * - * Copyright (c) 2011-2012, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2011-2013, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -1216,6 +1216,7 @@ static int tegra_smmu_probe(struct platform_device *pdev) as->pte_attr = _PTE_ATTR; spin_lock_init(&as->lock); + spin_lock_init(&as->client_lock); INIT_LIST_HEAD(&as->client); } spin_lock_init(&smmu->lock);