]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
powerpc/fsl/pci: Fix when quirk_fsl_pcie_header is freed up
authorMatias Garcia <mgarcia@rossvideo.com>
Mon, 19 Sep 2011 15:35:11 +0000 (11:35 -0400)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 10 Jul 2012 12:07:19 +0000 (07:07 -0500)
Change quirk_fsl_pcie_header from __init to __devinit to ensure if we
have a runtime access (like via an FPGA being loaded after boot on the
PCIe link) that we dont access randomly freed memory.

Signed-off-by: Matias Garcia <mgarcia@rossvideo.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/fsl_pci.c

index 6073288fed29889399bb640bc22f709043363f72..edbf79465d5088c009de7f55dbdc5884fd72f816 100644 (file)
@@ -36,7 +36,7 @@
 
 static int fsl_pcie_bus_fixup, is_mpc83xx_pci;
 
-static void __init quirk_fsl_pcie_header(struct pci_dev *dev)
+static void __devinit quirk_fsl_pcie_header(struct pci_dev *dev)
 {
        u8 progif;