aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2014-07-20 07:59:48 -0400
committerOlof Johansson <olof@lixom.net>2014-07-20 15:27:50 -0400
commit779ae55bd8ee63f2ba35a0ec15f033e512e706ee (patch)
treeb2c0e621addaf3aa01e4a94971177999084c282c
parent6675ef212dac43ae8474ae690e943c83449046b4 (diff)
PCI: spear: Remove spear13xx_pcie_remove()
Following compilation warning occurs when compiled with: CONFIG_DEBUG_SECTION_MISMATCH=y WARNING: vmlinux.o(.init.data+0x3338): Section mismatch in reference from the variable spear13xx_pcie_driver to the function .exit.text:spear13xx_pcie_remove() This driver isn't allowed to unload, and so doesn't have a *_exit() routine. But it still has spear13xx_pcie_remove() marked with __exit. As this driver can't unload, .remove() would never be called, right? So get rid of it. Fixes: 51b66a6ce125 (PCI: spear: Add PCIe driver for ST Microelectronics SPEAr13xx) Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r--drivers/pci/host/pcie-spear13xx.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/pci/host/pcie-spear13xx.c b/drivers/pci/host/pcie-spear13xx.c
index 67315ea081fc..6dea9e43a75c 100644
--- a/drivers/pci/host/pcie-spear13xx.c
+++ b/drivers/pci/host/pcie-spear13xx.c
@@ -365,17 +365,6 @@ fail_clk:
365 return ret; 365 return ret;
366} 366}
367 367
368static int __exit spear13xx_pcie_remove(struct platform_device *pdev)
369{
370 struct spear13xx_pcie *spear13xx_pcie = platform_get_drvdata(pdev);
371
372 clk_disable_unprepare(spear13xx_pcie->clk);
373
374 phy_exit(spear13xx_pcie->phy);
375
376 return 0;
377}
378
379static const struct of_device_id spear13xx_pcie_of_match[] = { 368static const struct of_device_id spear13xx_pcie_of_match[] = {
380 { .compatible = "st,spear1340-pcie", }, 369 { .compatible = "st,spear1340-pcie", },
381 {}, 370 {},
@@ -384,7 +373,6 @@ MODULE_DEVICE_TABLE(of, spear13xx_pcie_of_match);
384 373
385static struct platform_driver spear13xx_pcie_driver __initdata = { 374static struct platform_driver spear13xx_pcie_driver __initdata = {
386 .probe = spear13xx_pcie_probe, 375 .probe = spear13xx_pcie_probe,
387 .remove = spear13xx_pcie_remove,
388 .driver = { 376 .driver = {
389 .name = "spear-pcie", 377 .name = "spear-pcie",
390 .owner = THIS_MODULE, 378 .owner = THIS_MODULE,