From: Viresh Kumar Date: Sun, 20 Jul 2014 11:59:47 +0000 (+0530) Subject: PCI: spear: Fix Section mismatch compilation warning for probe() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~119^2~6 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6675ef212dac43ae8474ae690e943c83449046b4;p=pandora-kernel.git PCI: spear: Fix Section mismatch compilation warning for probe() Following compilation warning occurs when compiled with: CONFIG_DEBUG_SECTION_MISMATCH=y WARNING: drivers/pci/host/built-in.o(.data+0xc0): Section mismatch in reference from the variable spear13xx_pcie_driver to the function .init.text:spear13xx_pcie_probe() Both .probe() and pcie_init() are marked with __init, but spear13xx_pcie_driver isn't. And so section mismatch. Fix it by marking spear13xx_pcie_driver with __initdata. Fixes: 51b66a6ce125 (PCI: spear: Add PCIe driver for ST Microelectronics SPEAr13xx) Reported-by: Olof Johansson Signed-off-by: Viresh Kumar Signed-off-by: Olof Johansson --- Reading git-diff-tree failed