x86/amd-iommu: Use check_device in get_device_resources
commitf99c0f1c75f75924a6f19cb40a21ccefc6e8754d
authorJoerg Roedel <joerg.roedel@amd.com>
Mon, 23 Nov 2009 15:52:56 +0000 (23 16:52 +0100)
committerJoerg Roedel <joerg.roedel@amd.com>
Fri, 27 Nov 2009 13:16:30 +0000 (27 14:16 +0100)
tree962665b865b4bced5ea49372a8403c40fa1677f6
parent420aef8a3acfc3e75427107e23d5a9bafd17c477
x86/amd-iommu: Use check_device in get_device_resources

Every call-place of get_device_resources calls check_device
before it. So call it from get_device_resources directly and
simplify the code.

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