diff options
author | Sami Liedes <sliedes@nvidia.com> | 2013-02-04 07:31:48 -0500 |
---|---|---|
committer | Joerg Roedel <joro@8bytes.org> | 2013-02-04 09:11:13 -0500 |
commit | 0fde671b81d406a59ae21f35f121851509c3b138 (patch) | |
tree | d873a7c44cb7e5a1043156c8f335a8ae8c309090 /drivers/iommu | |
parent | 88b62b915b0b7e25870eb0604ed9a92ba4bfc9f7 (diff) |
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 <sliedes@nvidia.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/tegra-smmu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c index fc178893789a..87a719f4adfb 100644 --- a/drivers/iommu/tegra-smmu.c +++ b/drivers/iommu/tegra-smmu.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * IOMMU API for SMMU in Tegra30 | 2 | * IOMMU API for SMMU in Tegra30 |
3 | * | 3 | * |
4 | * Copyright (c) 2011-2012, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2011-2013, NVIDIA CORPORATION. All rights reserved. |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it | 6 | * This program is free software; you can redistribute it and/or modify it |
7 | * under the terms and conditions of the GNU General Public License, | 7 | * under the terms and conditions of the GNU General Public License, |
@@ -1216,6 +1216,7 @@ static int tegra_smmu_probe(struct platform_device *pdev) | |||
1216 | as->pte_attr = _PTE_ATTR; | 1216 | as->pte_attr = _PTE_ATTR; |
1217 | 1217 | ||
1218 | spin_lock_init(&as->lock); | 1218 | spin_lock_init(&as->lock); |
1219 | spin_lock_init(&as->client_lock); | ||
1219 | INIT_LIST_HEAD(&as->client); | 1220 | INIT_LIST_HEAD(&as->client); |
1220 | } | 1221 | } |
1221 | spin_lock_init(&smmu->lock); | 1222 | spin_lock_init(&smmu->lock); |