Patchwork sparc/PCI: remove unused pcibios_assign_resource() definition

login
register
mail settings
Submitter Bjorn Helgaas
Date June 18, 2012, 6:17 p.m.
Message ID <20120618181709.6135.2703.stgit@bhelgaas.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/165572/
State Accepted
Delegated to: David Miller
Headers show

Comments

Bjorn Helgaas - June 18, 2012, 6:17 p.m.
pcibios_assign_resource() isn't used anywhere; remove it.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
---
 arch/sparc/kernel/pcic.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)


--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Miller - June 27, 2012, 8:34 a.m.
From: Bjorn Helgaas <bhelgaas@google.com>
Date: Mon, 18 Jun 2012 12:17:10 -0600

> pcibios_assign_resource() isn't used anywhere; remove it.
> 
> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/arch/sparc/kernel/pcic.c b/arch/sparc/kernel/pcic.c
index ded3f60..46ba849 100644
--- a/arch/sparc/kernel/pcic.c
+++ b/arch/sparc/kernel/pcic.c
@@ -884,11 +884,6 @@  void __init sun4m_pci_init_IRQ(void)
 	sparc_config.load_profile_irq = pcic_load_profile_irq;
 }
 
-int pcibios_assign_resource(struct pci_dev *pdev, int resource)
-{
-	return -ENXIO;
-}
-
 /*
  * This probably belongs here rather than ioport.c because
  * we do not want this crud linked into SBus kernels.