summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev
diff options
context:
space:
mode:
authorMatias Garcia <mgarcia@rossvideo.com>2011-09-19 17:35:11 +0200
committerKumar Gala <galak@kernel.crashing.org>2012-07-10 14:07:19 +0200
commitdea0ed4a64b9d62b266d54350c2514fa7b2b1dbd (patch)
tree5bad3770119651ef4910d6be2819a90dd24751d0 /arch/powerpc/sysdev
parentpowerpc: Turn on BPF_JIT in ppc64_defconfig (diff)
downloadlinux-dea0ed4a64b9d62b266d54350c2514fa7b2b1dbd.tar.xz
linux-dea0ed4a64b9d62b266d54350c2514fa7b2b1dbd.zip
powerpc/fsl/pci: Fix when quirk_fsl_pcie_header is freed up
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>
Diffstat (limited to 'arch/powerpc/sysdev')
-rw-r--r--arch/powerpc/sysdev/fsl_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/fsl_pci.c
index 6073288fed29..edbf79465d50 100644
--- a/arch/powerpc/sysdev/fsl_pci.c
+++ b/arch/powerpc/sysdev/fsl_pci.c
@@ -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;