Skip to content

Commit

Permalink
PCI: Drop msi_mask_reg() and remove drivers/pci/msi.h
Browse files Browse the repository at this point in the history
msi_mask_reg() doesn't provide any useful abstraction, do drop it.

Remove the now-empty drivers/pci/msi.h.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
  • Loading branch information
Bjorn Helgaas committed Apr 23, 2013
1 parent 527eee2 commit 78b5a31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
4 changes: 2 additions & 2 deletions drivers/pci/msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <linux/slab.h>

#include "pci.h"
#include "msi.h"

static int pci_msi_enable = 1;

Expand Down Expand Up @@ -564,7 +563,8 @@ static int msi_capability_init(struct pci_dev *dev, int nvec)
entry->msi_attrib.default_irq = dev->irq; /* Save IOAPIC IRQ */
entry->msi_attrib.pos = dev->msi_cap;

entry->mask_pos = msi_mask_reg(dev->msi_cap, entry->msi_attrib.is_64);
entry->mask_pos = dev->msi_cap + (control & PCI_MSI_FLAGS_64BIT) ?
PCI_MSI_MASK_64 : PCI_MSI_MASK_32;
/* All MSIs are unmasked by default, Mask them all */
if (entry->msi_attrib.maskbit)
pci_read_config_dword(dev, entry->mask_pos, &entry->masked);
Expand Down
12 changes: 0 additions & 12 deletions drivers/pci/msi.h

This file was deleted.

0 comments on commit 78b5a31

Please sign in to comment.