[libata sata_mv] fix build
This function will go away when pci_intx() finally makes it into the core PCI layer.
This commit is contained in:
@@ -699,6 +699,22 @@ static int mv_host_init(struct ata_probe_ent *probe_ent)
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* move to PCI layer, integrate w/ MSI stuff */
|
||||||
|
static void pci_intx(struct pci_dev *pdev, int enable)
|
||||||
|
{
|
||||||
|
u16 pci_command, new;
|
||||||
|
|
||||||
|
pci_read_config_word(pdev, PCI_COMMAND, &pci_command);
|
||||||
|
|
||||||
|
if (enable)
|
||||||
|
new = pci_command & ~PCI_COMMAND_INTX_DISABLE;
|
||||||
|
else
|
||||||
|
new = pci_command | PCI_COMMAND_INTX_DISABLE;
|
||||||
|
|
||||||
|
if (new != pci_command)
|
||||||
|
pci_write_config_word(pdev, PCI_COMMAND, pci_command);
|
||||||
|
}
|
||||||
|
|
||||||
static int mv_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
|
static int mv_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||||
{
|
{
|
||||||
static int printed_version = 0;
|
static int printed_version = 0;
|
||||||
|
Reference in New Issue
Block a user