You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[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>
This commit is contained in:
@@ -363,7 +363,7 @@ static void __init offb_init_nodriver(struct device_node *dp)
|
||||
address = (u_long) dp->addrs[i].address;
|
||||
|
||||
#ifdef CONFIG_PPC64
|
||||
address += dp->phb->pci_mem_offset;
|
||||
address += ((struct pci_dn *)dp->data)->phb->pci_mem_offset;
|
||||
#endif
|
||||
|
||||
/* kludge for valkyrie */
|
||||
|
||||
Reference in New Issue
Block a user