drm/msm: fix IOMMU cleanup for -EPROBE_DEFER
authorStephane Viau <sviau@codeaurora.org>
Tue, 17 Jun 2014 14:32:37 +0000 (10:32 -0400)
committerRob Clark <robdclark@gmail.com>
Sun, 22 Jun 2014 12:32:10 +0000 (08:32 -0400)
commit87e956e9be0cdb832e90a4731b620286a8826842
treeaae99419fd336809818e4c91a393d89413b29719
parentcf3198c2051a180d0cb469b275b2fb30a0533772
drm/msm: fix IOMMU cleanup for -EPROBE_DEFER

If probe fails after IOMMU is attached, we need to detach in order to
clean up properly.  Before this change, IOMMU faults would occur if the
probe failed (-EPROBE_DEFER).

Signed-off-by: Stephane Viau <sviau@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c
drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.h
drivers/gpu/drm/msm/msm_gem.c
drivers/gpu/drm/msm/msm_iommu.c
drivers/gpu/drm/msm/msm_mmu.h