summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2014-07-20 07:59:47 -0400
committerOlof Johansson <olof@lixom.net>2014-07-20 15:27:29 -0400
commit6675ef212dac43ae8474ae690e943c83449046b4 (patch)
treeb802620fd556cfadf9a113f9ced8cb64a1c7fdc5 /drivers/pci
parentb776eec135d1f9dfca7e2fb9f53754cf0ec1ceb5 (diff)
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 <olof@lixom.net> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/host/pcie-spear13xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/host/pcie-spear13xx.c b/drivers/pci/host/pcie-spear13xx.c
index 99738e432596..67315ea081fc 100644
--- a/drivers/pci/host/pcie-spear13xx.c
+++ b/drivers/pci/host/pcie-spear13xx.c
@@ -382,7 +382,7 @@ static const struct of_device_id spear13xx_pcie_of_match[] = {
382}; 382};
383MODULE_DEVICE_TABLE(of, spear13xx_pcie_of_match); 383MODULE_DEVICE_TABLE(of, spear13xx_pcie_of_match);
384 384
385static struct platform_driver spear13xx_pcie_driver = { 385static struct platform_driver spear13xx_pcie_driver __initdata = {
386 .probe = spear13xx_pcie_probe, 386 .probe = spear13xx_pcie_probe,
387 .remove = spear13xx_pcie_remove, 387 .remove = spear13xx_pcie_remove,
388 .driver = { 388 .driver = {