diff options
| author | Bjorn Helgaas <bhelgaas@google.com> | 2013-10-22 23:06:20 -0400 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2013-10-29 18:55:59 -0400 |
| commit | 004bd069f876816f5f9023e8b1498753bca103fa (patch) | |
| tree | f4a08dc3447ef2c7c50db48d2aa60acc7c110450 /arch/mn10300 | |
| parent | 9ba205c384fc27cc7ff761744b012f1956a7e3e4 (diff) | |
mn10300/PCI: Remove useless pcibios_last_bus
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>
Diffstat (limited to 'arch/mn10300')
| -rw-r--r-- | arch/mn10300/unit-asb2305/pci-asb2305.h | 1 | ||||
| -rw-r--r-- | arch/mn10300/unit-asb2305/pci.c | 5 |
2 files changed, 0 insertions, 6 deletions
diff --git a/arch/mn10300/unit-asb2305/pci-asb2305.h b/arch/mn10300/unit-asb2305/pci-asb2305.h index 7fa66a0e4624..9e17aca5a2a1 100644 --- a/arch/mn10300/unit-asb2305/pci-asb2305.h +++ b/arch/mn10300/unit-asb2305/pci-asb2305.h | |||
| @@ -35,7 +35,6 @@ extern void pcibios_resource_survey(void); | |||
| 35 | 35 | ||
| 36 | /* pci.c */ | 36 | /* pci.c */ |
| 37 | 37 | ||
| 38 | extern int pcibios_last_bus; | ||
| 39 | extern struct pci_ops *pci_root_ops; | 38 | extern struct pci_ops *pci_root_ops; |
| 40 | 39 | ||
| 41 | extern struct irq_routing_table *pcibios_get_irq_routing_table(void); | 40 | extern struct irq_routing_table *pcibios_get_irq_routing_table(void); |
diff --git a/arch/mn10300/unit-asb2305/pci.c b/arch/mn10300/unit-asb2305/pci.c index e37fac0461f3..6b4339f8c9c2 100644 --- a/arch/mn10300/unit-asb2305/pci.c +++ b/arch/mn10300/unit-asb2305/pci.c | |||
| @@ -24,7 +24,6 @@ | |||
| 24 | 24 | ||
| 25 | unsigned int pci_probe = 1; | 25 | unsigned int pci_probe = 1; |
| 26 | 26 | ||
| 27 | int pcibios_last_bus = -1; | ||
| 28 | struct pci_ops *pci_root_ops; | 27 | struct pci_ops *pci_root_ops; |
| 29 | 28 | ||
| 30 | /* | 29 | /* |
| @@ -392,10 +391,6 @@ char *__init pcibios_setup(char *str) | |||
| 392 | if (!strcmp(str, "off")) { | 391 | if (!strcmp(str, "off")) { |
| 393 | pci_probe = 0; | 392 | pci_probe = 0; |
| 394 | return NULL; | 393 | return NULL; |
| 395 | |||
| 396 | } else if (!strncmp(str, "lastbus=", 8)) { | ||
| 397 | pcibios_last_bus = simple_strtol(str+8, NULL, 0); | ||
| 398 | return NULL; | ||
| 399 | } | 394 | } |
| 400 | 395 | ||
| 401 | return str; | 396 | return str; |
