Skip to content

Commit

Permalink
[IA64] Fix pci.c kernel compilation breakage.
Browse files Browse the repository at this point in the history
The recent change to convert the is_enabled flag in the PCI device to an
atomic count broke the IA64 compilation.

As pcibios_disable_device is only ever called if the reference count
is zero, convert the if to a BUG_ON.

Signed-off-by: Peter Chubb <peterc@gelato.unsw.edu.au>
Signed-off-by: Tony Luck <tony.luck@intel.com>
  • Loading branch information
Peter Chubb authored and Tony Luck committed Dec 6, 2006
1 parent 3e577a8 commit c7f570a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/ia64/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -564,8 +564,8 @@ pcibios_enable_device (struct pci_dev *dev, int mask)
void
pcibios_disable_device (struct pci_dev *dev)
{
if (dev->is_enabled)
acpi_pci_irq_disable(dev);
BUG_ON(atomic_read(&dev->enable_cnt));
acpi_pci_irq_disable(dev);
}

void
Expand Down

0 comments on commit c7f570a

Please sign in to comment.