Skip to content

Commit

Permalink
mn10300/PCI: Remove useless pcibios_last_bus
Browse files Browse the repository at this point in the history
pcibios_last_bus was apparently copied from x86.  On mn10300, it is
statically initialized to -1 and may be set with the "pci=lastbus=<X>"
boot option, but it is never tested.  This patch removes everything
related to pcibios_last_bus.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
  • Loading branch information
Bjorn Helgaas committed Oct 29, 2013
1 parent 9ba205c commit 004bd06
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion arch/mn10300/unit-asb2305/pci-asb2305.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ extern void pcibios_resource_survey(void);

/* pci.c */

extern int pcibios_last_bus;
extern struct pci_ops *pci_root_ops;

extern struct irq_routing_table *pcibios_get_irq_routing_table(void);
Expand Down
5 changes: 0 additions & 5 deletions arch/mn10300/unit-asb2305/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@

unsigned int pci_probe = 1;

int pcibios_last_bus = -1;
struct pci_ops *pci_root_ops;

/*
Expand Down Expand Up @@ -392,10 +391,6 @@ char *__init pcibios_setup(char *str)
if (!strcmp(str, "off")) {
pci_probe = 0;
return NULL;

} else if (!strncmp(str, "lastbus=", 8)) {
pcibios_last_bus = simple_strtol(str+8, NULL, 0);
return NULL;
}

return str;
Expand Down

0 comments on commit 004bd06

Please sign in to comment.