diff options
Diffstat (limited to 'drivers/acpi/pci_bind.c')
-rw-r--r-- | drivers/acpi/pci_bind.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/acpi/pci_bind.c b/drivers/acpi/pci_bind.c index 703d2a3e8012..6eb58ef366ef 100644 --- a/drivers/acpi/pci_bind.c +++ b/drivers/acpi/pci_bind.c | |||
@@ -124,7 +124,7 @@ static int acpi_pci_bind(struct acpi_device *device) | |||
124 | { | 124 | { |
125 | acpi_status status; | 125 | acpi_status status; |
126 | acpi_handle handle; | 126 | acpi_handle handle; |
127 | unsigned char bus; | 127 | struct pci_bus *bus; |
128 | struct pci_dev *dev; | 128 | struct pci_dev *dev; |
129 | 129 | ||
130 | dev = acpi_get_pci_dev(device->handle); | 130 | dev = acpi_get_pci_dev(device->handle); |
@@ -157,11 +157,11 @@ static int acpi_pci_bind(struct acpi_device *device) | |||
157 | goto out; | 157 | goto out; |
158 | 158 | ||
159 | if (dev->subordinate) | 159 | if (dev->subordinate) |
160 | bus = dev->subordinate->number; | 160 | bus = dev->subordinate; |
161 | else | 161 | else |
162 | bus = dev->bus->number; | 162 | bus = dev->bus; |
163 | 163 | ||
164 | acpi_pci_irq_add_prt(device->handle, pci_domain_nr(dev->bus), bus); | 164 | acpi_pci_irq_add_prt(device->handle, bus); |
165 | 165 | ||
166 | out: | 166 | out: |
167 | pci_dev_put(dev); | 167 | pci_dev_put(dev); |