diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2004-01-20 21:38:48 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2004-01-20 21:38:48 +0000 |
| commit | 1aa9b6106892f28d5e873a4312a43b34ddf7494c (patch) | |
| tree | eabfdb288f02038ba4c56c19d14c3982596f82c1 | |
| parent | 87dce4d26b18d10ee20d8194fc730b5b632b532d (diff) | |
Notes
| -rw-r--r-- | sys/dev/acpica/acpi_pci_link.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/dev/acpica/acpi_pci_link.c b/sys/dev/acpica/acpi_pci_link.c index a6b5b28c82fc..04fc18b0bad9 100644 --- a/sys/dev/acpica/acpi_pci_link.c +++ b/sys/dev/acpica/acpi_pci_link.c @@ -1013,8 +1013,7 @@ acpi_pci_link_config(device_t dev, ACPI_BUFFER *prtbuf, int busno) /* manual configuration. */ TAILQ_FOREACH(entry, &acpi_prt_entries, links) { - UINT8 irq; - char *irqstr, *op; + int irq; char prthint[32]; if (entry->busno != busno) { @@ -1026,15 +1025,8 @@ acpi_pci_link_config(device_t dev, ACPI_BUFFER *prtbuf, int busno) (int)((entry->prt.Address & 0xffff0000) >> 16), (int)entry->prt.Pin); - irqstr = getenv(prthint); - if (irqstr == NULL) { + if (getenv_int(prthint, &irq) == 0) continue; - } - - irq = strtoul(irqstr, &op, 0); - if (*op != '\0') { - continue; - } if (acpi_pci_link_is_valid_irq(entry->pci_link, irq)) { error = acpi_pci_link_set_irq(entry->pci_link, irq); |
