iommu/amd: Fix missing iommu_shutdown initialization in passthrough mode
authorShuah Khan <shuah.khan@hp.com>
Wed, 6 Jun 2012 16:50:06 +0000 (10:50 -0600)
committerJoerg Roedel <joerg.roedel@amd.com>
Thu, 7 Jun 2012 10:11:21 +0000 (12:11 +0200)
commitf2f12b6fc032c7b1419fd6db84e2868b5f05a878
tree930c98722adb84eabf64830a2192efe7a31155bc
parenteee53537c476c947bf7faa1c916d2f5a0ae8ec93
iommu/amd: Fix missing iommu_shutdown initialization in passthrough mode

The iommu_shutdown callback is not initialized when the AMD
IOMMU driver runs in passthrough mode. Fix that by moving
the callback initialization before the check for
passthrough mode.

Signed-off-by: Shuah Khan <shuah.khan@hp.com>
Cc: stable@vger.kernel.org
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/amd_iommu_init.c