iommu: tegra: correct device attach/detach
authorSri Krishna chowdary <schowdary@nvidia.com>
Thu, 30 Jan 2014 09:29:49 +0000 (14:29 +0530)
committerMatthew Pedro <mapedro@nvidia.com>
Thu, 6 Mar 2014 23:42:03 +0000 (15:42 -0800)
commit93a602b2df35cabe2384e0acc8fbdafdcbdbb337
tree796d2f6f6287ce708d25a3d8092948a53e78a96d
parent9958e2b2a4b92bfe8c9b19d2d61d31f6c3c305d0
iommu: tegra: correct device attach/detach

attach/detach a device only if registered to use smmu

Bug 1446597

Change-Id: I99be7eb3ddeff8b9f8ec61dc06b09eeb66bbd1d6
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/361928
(cherry picked from commit 25e4750235628bc03dca21c0cbf30fe267761a93)
Reviewed-on: http://git-master/r/375599
Reviewed-by: Bryan Wu <pengw@nvidia.com>
Tested-by: Bryan Wu <pengw@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
drivers/iommu/tegra-smmu.c