From: Michael Neuling Date: Wed, 27 May 2015 06:06:59 +0000 (+1000) Subject: powerpc/pci: Add shutdown hook to pci_controller_ops X-Git-Tag: omap-for-v4.2/fixes-rc1^2~139^2~94 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a8e6bbf8593a9395dd6c61f7c5f421570600017;p=pandora-kernel.git powerpc/pci: Add shutdown hook to pci_controller_ops Currently pnv_pci_shutdown() calls the PHB shutdown code for all PHBs in the system. It dereferences the private_data assuming it's a powernv PHB, which won't be the case when we have different PHB in the systems (like when we add vPHBs for CXL). This moves the shutdown hook to the pci_controller_ops and fixes the call site to use that instead. Signed-off-by: Michael Neuling Signed-off-by: Michael Ellerman --- Reading git-diff-tree failed