Skip to content
Commit b5d937de authored by Grant Likely's avatar Grant Likely
Browse files

powerpc/pci: Make both ppc32 and ppc64 use sysdata for pci_controller



Currently, ppc32 uses sysdata for the pci_controller pointer, and
ppc64 uses it to hold the device_node pointer.  This patch moves the
of_node pointer into (struct pci_bus*)->dev.of_node and
(struct pci_dev*)->dev.of_node so that sysdata can be converted to always
use the pci_controller pointer instead.  It also fixes up the
allocating of pci devices so that the of_node pointer gets assigned
consistently and increments the ref count.

Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 04bea68b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment