diff options
author | Paul Mackerras <paulus@samba.org> | 2005-09-06 13:17:54 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-09-09 22:11:38 +1000 |
commit | 1635317facea3094ddf34082cd86797efb1d9f7e (patch) | |
tree | 67d5a4d4c7af00ac4be4608092fec99a32683715 /arch/ppc64/kernel/iommu.c | |
parent | b28d2582ce8aafe531d909bb9c4dcf29189e786e (diff) | |
download | op-kernel-dev-1635317facea3094ddf34082cd86797efb1d9f7e.zip op-kernel-dev-1635317facea3094ddf34082cd86797efb1d9f7e.tar.gz |
[PATCH] Separate pci bits out of struct device_node
This patch pulls the PCI-related junk out of struct device_node and
puts it in a separate structure, struct pci_dn. The device_node now
just has a void * pointer in it, which points to a struct pci_dn for
nodes that represent PCI devices. It could potentially be used in
future for device-specific data for other sorts of devices, such as
virtual I/O devices.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc64/kernel/iommu.c')
-rw-r--r-- | arch/ppc64/kernel/iommu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/ppc64/kernel/iommu.c b/arch/ppc64/kernel/iommu.c index 845eebd..9032b6b 100644 --- a/arch/ppc64/kernel/iommu.c +++ b/arch/ppc64/kernel/iommu.c @@ -438,7 +438,8 @@ struct iommu_table *iommu_init_table(struct iommu_table *tbl) void iommu_free_table(struct device_node *dn) { - struct iommu_table *tbl = dn->iommu_table; + struct pci_dn *pdn = dn->data; + struct iommu_table *tbl = pdn->iommu_table; unsigned long bitmap_sz, i; unsigned int order; |