PCI MSI: Use mask_pos instead of mask_base when appropriate

MSI interrupts have a mask_pos where MSI-X have a mask_base.  Use a
transparent union to get rid of some ugly casts.

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
Matthew Wilcox 2009-03-17 08:54:08 -04:00 committed by Jesse Barnes
parent 379f5327a8
commit 264d9caaa1
2 changed files with 6 additions and 4 deletions

View file

@ -33,7 +33,10 @@ struct msi_desc {
unsigned int irq;
struct list_head list;
void __iomem *mask_base;
union {
void __iomem *mask_base;
u8 mask_pos;
};
struct pci_dev *dev;
/* Last set MSI message */