From: Gavin Shan Date: Wed, 24 Jul 2013 02:24:59 +0000 (+0800) Subject: powerpc/eeh: Don't use pci_dev during BAR restore X-Git-Tag: v3.11-rc3~18^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b83bd452f17582c8d1c916568fd28a237a2eb46;p=pandora-kernel.git powerpc/eeh: Don't use pci_dev during BAR restore While restoring BARs for one specific PCI device, the pci_dev instance should have been released. So it's not reliable to use the pci_dev instance on restoring BARs. However, we still need some information (e.g. PCIe capability position, header type) from the pci_dev instance. So we have to store those information to EEH device in advance. Signed-off-by: Gavin Shan Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed