x86/amd-iommu: Cleanup attach/detach_device code
authorJoerg Roedel <joerg.roedel@amd.com>
Thu, 26 Nov 2009 13:49:59 +0000 (14:49 +0100)
committerJoerg Roedel <joerg.roedel@amd.com>
Fri, 27 Nov 2009 13:20:35 +0000 (14:20 +0100)
commit7f760ddd702d162d693bc79f62c3bdd7fe55bd9d
tree82ee348a6777d500d9744595864169fcc6279c79
parent7c392cbe984d904f7c89a6a75b2ac245254e8da5
x86/amd-iommu: Cleanup attach/detach_device code

This patch cleans up the attach_device and detach_device
paths and fixes reference counting while at it.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
arch/x86/kernel/amd_iommu.c