aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sata_mv.c
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2005-09-07 02:05:59 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-09-07 02:05:59 -0400
commitca20aa6954bcb4537064a1bf5e8f74af57da2a03 (patch)
treec306097b64ec6c647354cb4cd420d49efd293e78 /drivers/scsi/sata_mv.c
parent20f733e7d75a16bffc34842b7682c9247dd5f954 (diff)
[libata sata_mv] fix build
This function will go away when pci_intx() finally makes it into the core PCI layer.
Diffstat (limited to 'drivers/scsi/sata_mv.c')
-rw-r--r--drivers/scsi/sata_mv.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/scsi/sata_mv.c b/drivers/scsi/sata_mv.c
index ea76fe44585e..f97e3afa97d9 100644
--- a/drivers/scsi/sata_mv.c
+++ b/drivers/scsi/sata_mv.c
@@ -699,6 +699,22 @@ static int mv_host_init(struct ata_probe_ent *probe_ent)
699 return rc; 699 return rc;
700} 700}
701 701
702/* move to PCI layer, integrate w/ MSI stuff */
703static void pci_intx(struct pci_dev *pdev, int enable)
704{
705 u16 pci_command, new;
706
707 pci_read_config_word(pdev, PCI_COMMAND, &pci_command);
708
709 if (enable)
710 new = pci_command & ~PCI_COMMAND_INTX_DISABLE;
711 else
712 new = pci_command | PCI_COMMAND_INTX_DISABLE;
713
714 if (new != pci_command)
715 pci_write_config_word(pdev, PCI_COMMAND, pci_command);
716}
717
702static int mv_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) 718static int mv_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
703{ 719{
704 static int printed_version = 0; 720 static int printed_version = 0;