]> git.baikalelectronics.ru Git - kernel.git/commit
x86/amd-iommu: Use get_device_id and check_device where appropriate
authorJoerg Roedel <joerg.roedel@amd.com>
Tue, 24 Nov 2009 16:19:23 +0000 (17:19 +0100)
committerJoerg Roedel <joerg.roedel@amd.com>
Fri, 27 Nov 2009 13:20:29 +0000 (14:20 +0100)
commit15932bd8d475bc9c1e3b7b15bae28fb1d557a9a9
tree6e53b9a3fd846fab4ff514d724f0ba6825f816af
parent071aa2ff45898b6b0ef2e325d2d2450cb43e50bf
x86/amd-iommu: Use get_device_id and check_device where appropriate

The logic of these two functions is reimplemented (at least
in parts) in places in the code. This patch removes these
code duplications and uses the functions instead. As a side
effect it moves check_device() to the helper function code
section.

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