x86/amd-iommu: Search for existind dev_data before allocting a new one
commit3b03bb745eb9fcafc6ef80fcbd04f0f0512acdc9
authorJoerg Roedel <joerg.roedel@amd.com>
Thu, 9 Jun 2011 16:53:25 +0000 (9 18:53 +0200)
committerJoerg Roedel <joerg.roedel@amd.com>
Tue, 14 Jun 2011 10:49:58 +0000 (14 12:49 +0200)
treeb6789f147fd29dd4959186607d4a2b48327ec5ea
parent2b02b091ab3d1685926bfc76486bf7a22d92979a
x86/amd-iommu: Search for existind dev_data before allocting a new one

Search for existing dev_data first will allow to switch
dev_data->alias to just store dev_data instead of struct
device.

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