summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev
diff options
context:
space:
mode:
authorMatias Garcia <mgarcia@rossvideo.com>2011-09-19 11:35:11 -0400
committerKumar Gala <galak@kernel.crashing.org>2012-07-10 07:07:19 -0500
commitdea0ed4a64b9d62b266d54350c2514fa7b2b1dbd (patch)
tree5bad3770119651ef4910d6be2819a90dd24751d0 /arch/powerpc/sysdev
parentdb9112173b185995b80f56e136bd2ae44e4e6366 (diff)
downloadop-kernel-dev-dea0ed4a64b9d62b266d54350c2514fa7b2b1dbd.zip
op-kernel-dev-dea0ed4a64b9d62b266d54350c2514fa7b2b1dbd.tar.gz
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 6073288..edbf794 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;
OpenPOWER on IntegriCloud